* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f3;
    color: #202020;
}


/* SIDEBAR */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 250px;
    height: 100vh;

    background: #181818;
    color: white;

    padding: 32px 20px;

    display: flex;
    flex-direction: column;
}

.logo {
    padding: 0 12px 32px 12px;
    border-bottom: 1px solid #333;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-subtitle {
    margin-top: 5px;
    font-size: 12px;
    color: #a7a7a7;
}

.navigation {
    margin-top: 30px;

    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav-item {
    color: #d6d6d6;
    text-decoration: none;

    padding: 13px 14px;
    border-radius: 8px;

    font-size: 14px;

    transition: 0.2s;
}

.nav-item:hover {
    background: #292929;
    color: white;
}

.nav-important {
    margin: 8px 0 18px 0;

    background: #e5d3b8;
    color: #181818;

    font-weight: 600;
}

.nav-important:hover {
    background: #d8c09e;
    color: #181818;
}

.sidebar-footer {
    margin-top: auto;
    padding: 15px 12px;

    color: #777;
    font-size: 12px;
}


/* MAIN */

.main-content {
    margin-left: 250px;
    min-height: 100vh;

    padding: 48px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 38px;
}

.page-header h1 {
    font-size: 30px;
    margin-bottom: 7px;
}

.page-header p {
    color: #777;
    font-size: 14px;
}


/* BUTTONS */

.primary-button,
.secondary-button {
    display: inline-block;

    text-decoration: none;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
}

.primary-button {
    background: #181818;
    color: white;

    padding: 13px 20px;
}

.primary-button:hover {
    background: #333;
}

.secondary-button {
    margin-top: 20px;

    background: #e5d3b8;
    color: #181818;

    padding: 12px 18px;
}

.text-button {
    color: #555;
    text-decoration: none;
    font-size: 13px;
}


/* STATISTICS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;

    margin-bottom: 32px;
}

.stat-card {
    background: white;

    border: 1px solid #e6e6e2;
    border-radius: 12px;

    padding: 24px;
}

.stat-label {
    display: block;

    color: #777;
    font-size: 13px;

    margin-bottom: 13px;
}

.stat-number {
    font-size: 25px;
}


/* DASHBOARD */

.dashboard-section {
    background: white;

    border: 1px solid #e6e6e2;
    border-radius: 12px;

    padding: 28px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 22px;

    border-bottom: 1px solid #eeeeeb;
}

.section-header h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.section-header p {
    color: #888;
    font-size: 13px;
}

.empty-state {
    text-align: center;

    padding: 65px 20px;
}

.empty-state h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.empty-state p {
    color: #888;
    font-size: 14px;
}

/* FORMULARZE */

.product-form {
    padding-top: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;

    border: 1px solid #dcdcd7;
    border-radius: 8px;

    background: #ffffff;
    color: #202020;

    font-family: inherit;
    font-size: 14px;

    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #bda889;
}

.form-group textarea {
    resize: vertical;
}


/* TREPPENTYPEN */

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.checkbox-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;

    gap: 10px;

    padding: 14px;

    border: 1px solid #e2e2dd;
    border-radius: 8px;

    background: #fafaf8;

    cursor: pointer;
}

.checkbox-card:hover {
    border-color: #c8b391;
    background: #f8f4ee;
}

.checkbox-card input {
    width: auto;
}


/* LISTA POZYCJI */

.position-list {
    margin-top: 24px;
}

.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 5px;

    border-bottom: 1px solid #eeeeeb;
}

.product-row:last-child {
    border-bottom: none;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-info strong {
    font-size: 14px;
}

.product-info span {
    color: #888;
    font-size: 12px;
}

.product-price {
    font-weight: 600;
    font-size: 14px;
}

.product-price span {
    color: #888;
    font-weight: 400;
    font-size: 12px;
}


/* MNIEJSZE EKRANY */

@media (max-width: 1000px) {

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* KATEGORIE POZYCJI */

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 7px;
}

.category-badge {
    display: inline-block;

    padding: 5px 9px;

    background: #f1ede7;
    border: 1px solid #e4dbcf;
    border-radius: 20px;

    color: #665b4d;

    font-size: 11px;
    font-weight: 500;
}

.category-warning {
    background: #fff3e6;
    border-color: #efd5b5;
}


.product-actions {
    display: flex;
    align-items: center;

    gap: 22px;
}

.edit-button {
    padding: 9px 13px;

    border: 1px solid #d8d8d3;
    border-radius: 7px;

    color: #333;
    background: white;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;
}

.edit-button:hover {
    background: #f5f5f2;
}

/* TREPPENTYPEN */

.treppentyp-form {
    padding-top: 28px;
}

.treppentyp-add-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.treppentyp-name {
    flex: 1;
    margin-bottom: 0;
}

.treppentyp-add-row .primary-button {
    border: none;
    cursor: pointer;
    min-height: 42px;
}

.treppentyp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 5px;
    border-bottom: 1px solid #eeeeeb;
}

.treppentyp-row:last-child {
    border-bottom: none;
}

.treppentyp-row strong {
    font-size: 14px;
}

/* =========================================================
   NEUES ANGEBOT
   ========================================================= */

.offer-customer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.offer-settings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
    margin-top: 25px;
}

.offer-empty-state {
    padding: 35px;
    text-align: center;
    color: #888;
    background: #fafaf8;
    border: 1px dashed #d8d8d2;
    border-radius: 8px;
    margin-top: 20px;
}

.offer-position-row {
    display: grid;
    grid-template-columns:
        40px minmax(220px, 2fr) 110px 130px 60px 150px 120px;

    gap: 14px;

    align-items: center;

    padding: 18px 5px;

    border-bottom: 1px solid #ecece8;
}

.offer-position-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-position-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.offer-position-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.offer-position-name strong {
    font-size: 14px;
}

.offer-position-name span {
    font-size: 12px;
    color: #777;
}

.offer-position-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.offer-position-field label {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
}

.offer-position-field input,
.offer-position-field select {
    width: 100%;
}

.offer-position-unit {
    font-size: 12px;
    color: #777;
}

.offer-position-total {
    text-align: right;
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 1200px) {

    .offer-customer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .offer-position-row {
        grid-template-columns:
            35px minmax(180px, 2fr) 90px 110px 50px 130px 100px;
    }
}

/* =========================================================
   ANGEBOT - OPTIONAL
   ========================================================= */

.position-is-optional {
    opacity: 0.55;
    background: #fafaf8;
}

.optional-preview-row {
    display: grid;
    grid-template-columns: 50px 1fr 130px 150px;
    gap: 15px;
    align-items: center;

    padding: 16px 8px;

    border-bottom: 1px solid #ecece8;
}

.optional-number {
    text-align: center;
    font-size: 13px;
    color: #777;
}

.optional-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.optional-name strong {
    font-size: 14px;
}

.optional-name span {
    font-size: 12px;
    color: #777;
}

.optional-unit {
    font-size: 13px;
}

.optional-price {
    display: flex;
    flex-direction: column;

    text-align: right;

    font-size: 14px;
    font-weight: 700;
}

.optional-price span {
    margin-top: 2px;

    font-size: 11px;
    font-weight: 400;
    color: #777;
}


/* =========================================================
   ANGEBOT - SUMME
   ========================================================= */

.offer-summary {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 15px;

    border-bottom: 1px solid #ecece8;

    font-size: 14px;
}

.summary-net {
    margin-top: 5px;

    background: #f1e8dc;

    font-weight: 700;
}

.summary-total {
    margin-top: 8px;

    background: #e5d3b8;

    font-size: 17px;
    font-weight: 700;
}

.summary-total strong {
    font-size: 18px;
}

/* =========================================================
   ANGEBOT SPEICHERN
   ========================================================= */

.offer-save-area {
    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid #e8e8e3;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.offer-save-area .primary-button {
    border: none;
    cursor: pointer;

    min-width: 190px;
}

.offer-save-area .primary-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.save-offer-message {
    font-size: 13px;
}

.save-success {
    color: #347044;
}

.save-error {
    color: #a63d3d;
}

/* =========================================================
   ANGEBOTE LISTE
   ========================================================= */

.offers-table {
    width: 100%;
}

.offers-table-header,
.offers-table-row {
    display: grid;

    grid-template-columns:
        130px 1.5fr 1.5fr 120px 110px 90px;

    gap: 18px;

    align-items: center;
}

.offers-table-header {
    padding: 12px 15px;

    background: #f1e8dc;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    color: #665b4d;
}

.offers-table-row {
    padding: 18px 15px;

    border-bottom: 1px solid #ecece8;

    font-size: 13px;
}

.offers-table-row>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offer-number {
    font-weight: 700;
}

.muted {
    color: #999;
}

.status-badge {
    display: inline-flex;

    width: fit-content;

    padding: 5px 9px;

    border-radius: 20px;

    background: #f1ede7;

    font-size: 11px;
}

.offer-list-actions {
    align-items: flex-end;
}


/* =========================================================
   ANGEBOT DETAILS
   ========================================================= */

.offer-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;

    margin-top: 20px;
}

.offer-detail-grid>div {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.offer-detail-grid span {
    font-size: 11px;

    text-transform: uppercase;

    color: #999;
}

.offer-detail-grid strong {
    font-size: 14px;

    line-height: 1.5;
}

.detail-position-row {
    display: grid;

    grid-template-columns:
        1fr 140px 140px 140px;

    gap: 20px;

    align-items: center;

    padding: 17px 5px;

    border-bottom: 1px solid #ecece8;

    font-size: 13px;
}

.detail-position-row>div:first-child {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.detail-position-row span {
    font-size: 12px;
    color: #777;
}

.optional-detail-row {
    background: #fafaf8;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #dc3545;
    background: white;
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.delete-button:hover {
    background: #dc3545;
    color: white;
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
}

.page-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    white-space: nowrap;
}

/* =========================================================
   AUFTRAG WORKFLOW
   ========================================================= */

.order-workflow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.workflow-form {
    flex: 1;
    min-width: 135px;
    margin: 0;
}

.workflow-step {
    width: 100%;
    min-height: 82px;
    padding: 14px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 12px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.workflow-step:hover {
    border-color: #999999;
    transform: translateY(-2px);
}

.workflow-number {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eeeeee;

    font-size: 13px;
    font-weight: 700;
}

.workflow-title {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.workflow-step-active {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #ffffff;
}

.workflow-step-active .workflow-number {
    background: #ffffff;
    color: #1f1f1f;
}

/* =========================================================
   AUFTRAG PRODUKTIONSDATEN
   ========================================================= */

.order-details-form {
    margin-top: 20px;
}

.order-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.order-details-form .form-group {
    margin-bottom: 20px;
}

.order-details-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.order-details-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.order-details-form textarea:focus {
    outline: none;
    border-color: #777777;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .order-form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   AUFTRAG DATEIEN
   ========================================================= */

.order-upload-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 25px;
}

.order-upload-form input[type="file"] {
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
}

.order-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 14px 16px;

    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
}

.order-file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-file-info strong {
    font-size: 14px;
}

.order-file-info span {
    font-size: 12px;
    color: #777777;
}

@media (max-width: 800px) {
    .order-file-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.file-category-section {
    margin-top: 30px;
}

.file-category-section h3 {
    margin-bottom: 14px;
    font-size: 16px;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.file-card {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    overflow: hidden;
}

.file-preview-link {
    display: block;
}

.file-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.file-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
    font-weight: 700;
    color: #777777;
}

.file-card-body {
    padding: 12px;
}

.file-card-body strong {
    display: block;
    font-size: 13px;
    word-break: break-word;
    margin-bottom: 5px;
}

.file-card-body span {
    font-size: 12px;
    color: #777777;
}

.file-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* =========================================================
   AUFTRAG KUNDENDATEN
   ========================================================= */

.customer-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.customer-data-card {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
}

.customer-data-card strong {
    display: block;
    margin-top: 7px;
    font-size: 15px;
    line-height: 1.5;
}

.customer-data-card a {
    color: inherit;
    text-decoration: none;
}

.customer-data-card a:hover {
    text-decoration: underline;
}

.customer-data-wide {
    grid-column: 1 / -1;
}

@media (max-width: 800px) {
    .customer-data-grid {
        grid-template-columns: 1fr;
    }

    .customer-data-wide {
        grid-column: auto;
    }
}

.customer-data-card label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.customer-data-card input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

/* =========================================================
   AUFTRÄGE - TERMINE IN DER LISTE
   ========================================================= */

.order-date-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.order-date-item {
    min-width: 125px;
    padding: 9px 12px;
    background: #f6f6f6;
    border-radius: 8px;
}

.order-date-item span {
    display: block;
    font-size: 11px;
    color: #777777;
    margin-bottom: 3px;
}

.order-date-item strong {
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 800px) {

    .order-date-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

}

.orders-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.orders-column {
    min-width: 0;
}

.order-column-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

.order-column-card .product-actions {
    justify-content: flex-start;
}

.order-date-grid-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .orders-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .order-date-grid-column {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   NÄCHSTER TERMIN
   ========================================================= */

.next-date-box {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #dddddd;
    background: #f7f7f7;
    min-width: 165px;
    width: 165px;
    box-sizing: border-box;
}

.next-date-caption {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.7;
}

.next-date-main {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.next-date-main strong {
    font-size: 14px;
}

.next-date-status {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}

.next-date-overdue {
    border-color: #d7aaaa;
    background: #fff1f1;
}

.next-date-today {
    border-color: #d3b36b;
    background: #fff8df;
}

.next-date-soon {
    border-color: #dfc98c;
    background: #fffbea;
}

.next-date-normal {
    border-color: #dcdcdc;
    background: #f7f7f7;
}

.next-date-completed {
    border-color: #b9d5bd;
    background: #f0f8f1;
}

/* =========================================================
   NÄCHSTER TERMIN - breiter und Datum in einer Zeile
   ========================================================= */

.next-date-box {
    min-width: 165px;
    max-width: 185px;
    width: auto;
    box-sizing: border-box;
}

.next-date-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.next-date-label,
.next-date-value {
    white-space: nowrap;
}

/* =========================================================
   KALENDER
   ========================================================= */

.calendar-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.calendar-card {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    padding: 22px;
    margin-top: 20px;
    overflow: hidden;
}


/* =========================================================
   MONATSNAVIGATION
   ========================================================= */

.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 22px;
}

.calendar-month-title {
    min-width: 220px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
}

.calendar-nav-button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dddddd;
    border-radius: 9px;
    background: #ffffff;
    text-decoration: none;
    color: #222222;
    font-size: 20px;
    transition: 0.2s;
}

.calendar-nav-button:hover {
    background: #f3f3f3;
}


/* =========================================================
   WOCHENTAGE
   ========================================================= */

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
}

.calendar-weekdays div {
    padding: 11px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f7f7f7;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}


/* =========================================================
   TAGE
   ========================================================= */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #e5e5e5;
}

.calendar-day {
    min-height: 155px;
    padding: 9px;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
    box-sizing: border-box;
}

.calendar-day-outside {
    background: #fafafa;
    opacity: 0.45;
}

.calendar-day-today {
    background: #fffdf3;
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calendar-day-number {
    font-size: 14px;
    font-weight: 700;
}

.calendar-today-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background: #222222;
    color: #ffffff;
    padding: 3px 6px;
    border-radius: 5px;
}


/* =========================================================
   TERMINE
   ========================================================= */

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-event {
    display: block;
    padding: 7px 8px;
    border-radius: 7px;
    text-decoration: none;
    color: #222222;
    border: 1px solid #dddddd;
    background: #f7f7f7;
    transition: 0.15s;
}

.calendar-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.calendar-event-title {
    font-size: 11px;
    font-weight: 700;
}

.calendar-event-order {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
}

.calendar-event-customer {
    margin-top: 2px;
    font-size: 10px;
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   TERMINARTEN
   ========================================================= */

.calendar-event-measurement {
    background: #f2f6ff;
    border-color: #cdd8ed;
}

.calendar-event-production {
    background: #fff9e9;
    border-color: #e5d29c;
}

.calendar-event-montage {
    background: #f2f8f3;
    border-color: #bfd5c2;
}

.calendar-event-delivery {
    background: #f6f1ff;
    border-color: #d6c6eb;
}

.calendar-event-completion {
    background: #f1f1f1;
    border-color: #cccccc;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .calendar-card {
        overflow-x: auto;
    }

    .calendar-weekdays,
    .calendar-grid {
        min-width: 900px;
    }
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-family: Arial, sans-serif;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 14px;
    padding: 32px;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.login-logo {
    margin-bottom: 28px;
}

.login-card h1 {
    margin: 0 0 24px 0;
    font-size: 24px;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

.login-button {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.login-button:hover {
    opacity: 0.9;
}

.login-error {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff1f1;
    border: 1px solid #e1bcbc;
    font-size: 13px;
}