:root {

    --ink: #193737;
    --ink-deep: #102a2b;
    --ink-soft: #315252;

    --paper: #f6f2eb;
    --paper-deep: #e9e2d6;

    --sand: #c99b74;
    --sand-light: #ddb996;

    --line: rgba(25,55,55,.14);

}



/* =========================================================
   Grundlayout
========================================================= */


.kps-dashboard {

    background: var(--paper);

    min-height: 100vh;

    padding: 45px;

    color: var(--ink);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

}



.kps-dashboard h1,
.kps-dashboard h2,
.kps-dashboard h3 {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;

    color: var(--ink);

}





/* =========================================================
   Header
========================================================= */


.kps-dashboard-header {

    background: white;

    padding: 40px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 35px;

    border: 1px solid var(--line);

    box-shadow:
        0 15px 35px rgba(12,38,39,.08);

}



.kps-eyebrow {

    margin: 0 0 10px;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: .15em;

    color: var(--sand);

    font-weight: 700;

}



.kps-dashboard-header h1 {

    font-size: 42px;

    margin: 0 0 10px;

}



.kps-user-box {

    background: var(--paper);

    padding: 25px 35px;

    text-align: right;

}



.kps-user-box span {

    display: block;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: .1em;

    color: var(--ink-soft);

}



.kps-user-box strong {

    display: block;

    margin-top: 8px;

    font-size: 22px;

}





/* =========================================================
   Statistik
========================================================= */


.kps-stat-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    margin-bottom: 35px;

}



.kps-stat-card {

    background: white;

    padding: 30px;

    display: flex;

    align-items: center;

    gap: 20px;

    border: 1px solid var(--line);

    box-shadow:
        0 10px 25px rgba(12,38,39,.06);

}



.kps-stat-card strong {

    display: block;

    font-size: 36px;

    color: var(--ink);

}



.kps-stat-card span {

    color: var(--ink-soft);

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: .08em;

}





/* =========================================================
   Icons
========================================================= */


.kps-icon {

    width: 28px !important;

    height: 28px !important;

    max-width: 28px;

    max-height: 28px;

    object-fit: contain;

    display: inline-block;

    vertical-align: middle;

    flex-shrink: 0;

}





/* =========================================================
   Hauptbereiche
========================================================= */


.kps-panel {

    background: white;

    padding: 35px;

    margin-bottom: 30px;

    border: 1px solid var(--line);

    box-shadow:
        0 15px 35px rgba(12,38,39,.06);

}



.kps-panel-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}



.kps-panel-header h2 {

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 0;

    font-size: 26px;

}





/* =========================================================
   Kundenliste
========================================================= */


.kps-search-box {

    margin-bottom: 25px;

}



.kps-search-box input {

    width: 100%;

    padding: 15px;

    border: 1px solid var(--line);

    font-size: 15px;

}



.kps-customer-list {

    border-top: 1px solid var(--line);

}





/* =========================================================
   Leere Bereiche
========================================================= */


.kps-empty-state {

    background: var(--paper);

    padding: 30px;

    text-align: center;

    color: var(--ink-soft);

}





/* =========================================================
   Buttons
========================================================= */


.kps-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 24px;

    background: var(--sand-light);

    color: var(--ink-deep);

    border: none;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .1em;

    text-transform: uppercase;

    cursor: pointer;

}



.kps-button:hover {

    background: var(--sand);

    color: var(--ink-deep);

}



.kps-button-secondary {

    background: var(--ink);

    color: white;

}





/* =========================================================
   Kalender
========================================================= */


.kps-calendar-preview {

    min-height: 200px;

}





/* =========================================================
   Rechnungen
========================================================= */


.kps-invoice-list {

    min-height: 120px;

}





/* =========================================================
   Verwaltung
========================================================= */


.kps-settings-list div {

    display: flex;

    justify-content: space-between;

    padding: 15px 0;

    border-bottom: 1px solid var(--line);

}





/* =========================================================
   Technikbereich
========================================================= */


.kps-technical-panel {

    margin-top: 40px;

}



.kps-technical-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

}



.kps-tech-box {

    background: var(--paper);

    padding: 25px;

    border: 1px solid var(--line);

}



.kps-tech-box h3 {

    margin-top: 0;

}





/* =========================================================
   Responsive
========================================================= */


@media(max-width: 900px) {


    .kps-dashboard {

        padding: 20px;

    }


    .kps-dashboard-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

    }



    .kps-stat-grid,
    .kps-technical-grid {

        grid-template-columns: 1fr;

    }


}

/* Kundenliste */

.kps-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}


.kps-table th,
.kps-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: middle;
}


/* sinnvolle Mindestbreiten */

.kps-table th:nth-child(1),
.kps-table td:nth-child(1) {
    min-width: 120px;
}


.kps-table th:nth-child(2),
.kps-table td:nth-child(2) {
    min-width: 180px;
}


.kps-table th:nth-child(3),
.kps-table td:nth-child(3) {
    min-width: 130px;
}


.kps-table th:nth-child(4),
.kps-table td:nth-child(4) {
    min-width: 220px;
}


.kps-table th:nth-child(5),
.kps-table td:nth-child(5) {
    min-width: 150px;
}


.kps-table th:nth-child(6),
.kps-table td:nth-child(6) {
    min-width: 150px;
}



/* Text nicht quetschen */

.kps-table td {
    word-break: break-word;
}



/* Alternative Kartei-Schaltfläche */

.kps-button-secondary {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;

    background: #ffffff;

    color: var(--ink-deep);

    border: 1px solid var(--sand);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .05em;

    text-transform: uppercase;

    cursor: pointer;

    transition: .2s ease;

    text-decoration: none;

    white-space: nowrap;

}

.kps-arrow {

    margin-left: 3px;

    font-size: 10px;

    display: inline-block;

    transition: transform .2s ease;

}


.kps-button-secondary:hover {

    background: var(--sand-light);

    color: var(--ink-deep);

}

.kps-button-secondary:hover .kps-arrow {

    transform: translateX(3px);

}

/* ==========================================================
   Kundenformular Frontend
   ========================================================== */


.kps-form-section {

    margin-bottom: 35px;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--line);

}



.kps-form-section:last-child {

    border-bottom: none;

    margin-bottom: 20px;

}



.kps-form-section h2 {

    margin-bottom: 25px;

    font-size: 22px;

    color: var(--ink);

}




.kps-form-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 25px 30px;

}




.kps-form-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

}




.kps-form-group label {

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    color: var(--ink-soft);

}




.kps-form-group input,
.kps-form-group select {


    width: 100%;

    padding: 13px 15px;

    background: #ffffff;

    border: 1px solid rgba(25,55,55,.25);

    color: var(--ink);

    font-size: 14px;

    font-family: 'Segoe UI', Arial, sans-serif;

    transition: .2s ease;

    box-sizing: border-box;


}





.kps-form-group input:focus,
.kps-form-group select:focus {


    outline: none;

    border-color: var(--sand);

    box-shadow: 0 0 0 3px rgba(201,155,116,.15);


}





.kps-form-group select {

    cursor: pointer;

}





/* Formular Button */

.kps-form-section + .kps-button {

    margin-top: 10px;

}






/* Mobile */

@media (max-width: 800px) {


    .kps-form-grid {

        grid-template-columns: 1fr;

    }


}

/* ==========================================================
   Kundenkartei - kompakteres Layout
   ========================================================== */


.kps-dashboard .kps-panel {

    padding: 22px;

    margin-bottom: 20px;

}



.kps-dashboard .kps-panel-header {

    margin-bottom: 18px;

}



.kps-dashboard .kps-panel-header h2 {

    font-size: 18px;

}





/* kleinere Datenkarten */

.kps-dashboard .kps-stat-grid {

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 15px;

}




.kps-dashboard .kps-stat-card {

    min-width: 0;

    padding: 15px;

    overflow: hidden;

}




.kps-dashboard .kps-stat-card strong {

    display: block;

    overflow-wrap: anywhere;

    word-break: break-word;

    font-size: 14px;

}





/* lange Inhalte wie WhatsApp / E-Mail */

.kps-dashboard .kps-stat-card span {

    font-size: 11px;

}




/* Mobile */

@media (max-width: 1000px) {


    .kps-dashboard .kps-stat-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}



@media (max-width: 600px) {


    .kps-dashboard .kps-stat-grid {

        grid-template-columns: 1fr;

    }

}

.kps-back-navigation {

    margin-bottom: 20px;

}


.kps-back-navigation a {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #355044;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s ease;

}



.kps-back-navigation a:hover {

    color: #b99a6b;

}