/* ========================================================= */
/* GRUNDFARBEN LIGHT MODE */
/* ========================================================= */

:root {

    --primary: #2457d6;
    --primary-dark: #1942aa;

    --background: #f4f7fb;

    --card: #ffffff;

    --text: #172033;

    --muted: #6b7280;

    --border: #e3e8f0;

    --success: #16855b;

    --warning: #d97706;

    --danger: #c53c3c;

    --input-background: #ffffff;

    --secondary-button: #edf0f5;

    --header-background: #ffffff;

    --soft-background: #f7f9fc;

    --shadow:
        rgba(30, 48, 80, 0.07);
}


/* ========================================================= */
/* DARK MODE */
/* ========================================================= */

body.dark-mode {

    --primary: #5d82ee;
    --primary-dark: #7695ed;

    --background: #111827;

    --card: #1f2937;

    --text: #f1f5f9;

    --muted: #9ca3af;

    --border: #364152;

    --success: #4ac594;

    --warning: #f3a847;

    --danger: #f87171;

    --input-background: #273244;

    --secondary-button: #354052;

    --header-background: #182231;

    --soft-background: #273244;

    --shadow:
        rgba(0, 0, 0, 0.30);
}


/* ========================================================= */
/* ALLGEMEIN */
/* ========================================================= */

* {
    box-sizing: border-box;
}


body {

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);

    color: var(--text);

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


.page {
    min-height: 100vh;
}


/* ========================================================= */
/* HEADER */
/* ========================================================= */

.header {

    background: var(--header-background);

    border-bottom:
        1px solid var(--border);

    padding:
        16px 30px;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}


/*
    Gesamter Inhalt der Kopfzeile.
*/
.header-inner {

    max-width: 1100px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/*
    Logo + Überschrift links.
*/
.header-left {

    display: flex;

    align-items: center;

    gap: 15px;
}


.header h1 {

    margin: 0;

    font-size: 22px;
}


.header p {

    margin:
        4px 0 0;

    color: var(--muted);
}


/* ========================================================= */
/* LOGO */
/* ========================================================= */

.logo {

    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;
}


.logo img {

    width: 100%;

    height: 100%;

    object-fit: contain;
}


/* ========================================================= */
/* LIGHT-/DARK-MODE-SCHALTER */
/* ========================================================= */

/*
    Gesamter Bereich rechts oben.
*/
.theme-area {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}


/*
    Kleine Sonne / Mond außen.
*/
.theme-label {

    color: var(--muted);

    font-size: 20px;
}


/*
    Der eigentliche Schalter.
*/
.theme-switch {

    position: relative;

    display: inline-block;

    width: 82px;

    height: 40px;

    cursor: pointer;
}


/*
    Die Checkbox selbst wird versteckt.
*/
.theme-switch input {

    opacity: 0;

    width: 0;

    height: 0;
}


/*
    Hintergrund des Schalters.
*/
.theme-slider {

    position: absolute;

    inset: 0;

    background: #dce1e8;

    border-radius: 999px;

    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.15);

    transition:
        0.3s ease;

    overflow: hidden;
}


/*
    Hintergrund im Dark Mode.
*/
.theme-switch input:checked + .theme-slider {

    background: #36466d;
}


/*
    Runde weiße Kugel,
    die nach links/rechts fährt.
*/
.theme-knob {

    position: absolute;

    width: 34px;

    height: 34px;

    left: 3px;

    top: 3px;

    background: white;

    border-radius: 50%;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.3s ease;
}


/*
    Wenn Dark Mode aktiviert ist,
    Kugel nach rechts verschieben.
*/
.theme-switch input:checked
+ .theme-slider
.theme-knob {

    transform:
        translateX(42px);
}


/*
    Icons im Schalter.
*/
.theme-icon {

    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    font-size: 17px;

    z-index: 2;

    pointer-events: none;
}


/*
    Sonne links.
*/
.sun-icon {

    left: 11px;

    color: #f6a000;
}


/*
    Mond rechts.
*/
.moon-icon {

    right: 11px;

    color: #6e86d7;
}


/*
    Kugel über die Icons legen.
*/
.theme-knob {
    z-index: 3;
}


/* ========================================================= */
/* HAUPTBEREICHE */
/* ========================================================= */

.main {

    width: 92%;

    max-width: 760px;

    margin:
        45px auto;
}


.support-main {

    width: 94%;

    max-width: 1150px;

    margin:
        40px auto;
}


/* ========================================================= */
/* FORTSCHRITTSBALKEN */
/* ========================================================= */

.progress-area {
    margin-bottom: 18px;
}


.progress-text {

    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;

    font-size: 14px;

    color: var(--muted);
}


.progress-bar {

    height: 8px;

    border-radius: 20px;

    background: var(--border);

    overflow: hidden;
}


.progress-fill {

    height: 100%;

    background: var(--primary);

    border-radius: 20px;

    transition:
        width 0.3s ease;
}


/* ========================================================= */
/* KARTEN */
/* ========================================================= */

.ticket-card {

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: 16px;

    padding: 32px;

    box-shadow:
        0 8px 30px var(--shadow);

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}


.ticket-card h2 {

    margin-top: 10px;

    margin-bottom: 8px;
}


/* ========================================================= */
/* SCHRITT-LABEL */
/* ========================================================= */

.step-label {

    display: inline-block;

    color: var(--primary);

    background: rgba(70, 110, 230, 0.12);

    padding:
        6px 11px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: bold;
}


.express-label {

    background:
        rgba(217, 119, 6, 0.15);

    color: var(--warning);
}


.description {

    color: var(--muted);

    line-height: 1.6;

    margin-bottom: 25px;
}


/* ========================================================= */
/* EINGABEFELDER */
/* ========================================================= */

.text-input {

    width: 100%;

    padding:
        13px 14px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    font-size: 15px;

    background: var(--input-background);

    color: var(--text);

    outline: none;

    transition:
        0.2s ease;
}


.text-input::placeholder {
    color: var(--muted);
}


.text-input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(70, 110, 230, 0.16);
}


.textarea {

    min-height: 140px;

    resize: vertical;
}


.form-label {

    display: block;

    margin-bottom: 8px;

    font-weight: bold;
}


/* ========================================================= */
/* AUSWAHLKARTEN */
/* ========================================================= */

.choice-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;

    margin:
        22px 0;
}


.choice-card {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 18px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    cursor: pointer;

    transition:
        0.2s;

    background:
        var(--card);
}


.choice-card:hover {

    border-color: var(--primary);

    background:
        var(--soft-background);
}


.express-card {

    border-color:
        var(--warning);
}


/* ========================================================= */
/* BUTTONS */
/* ========================================================= */

.button-row {

    display: flex;

    justify-content: space-between;

    gap: 12px;

    margin-top: 28px;
}


.button-row.right {

    justify-content: flex-end;
}


.btn {

    border: none;

    padding:
        12px 20px;

    border-radius: 9px;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition:
        0.2s;
}


.btn-primary {

    background: var(--primary);

    color: white;
}


.btn-primary:hover {

    background: var(--primary-dark);
}


.btn-secondary {

    background:
        var(--secondary-button);

    color:
        var(--text);
}


.btn-success {

    background:
        var(--success);

    color:
        white;
}


/* ========================================================= */
/* INFOBOXEN */
/* ========================================================= */

.info-box {

    padding: 15px;

    background:
        rgba(70, 110, 230, 0.10);

    border-left:
        4px solid var(--primary);

    border-radius: 8px;

    margin:
        18px 0;

    line-height: 1.5;
}


.warning-box {

    padding: 18px;

    background:
        rgba(217, 119, 6, 0.12);

    border-left:
        4px solid var(--warning);

    border-radius: 8px;

    margin:
        20px 0;

    line-height: 1.5;
}


.error-box {

    padding:
        13px 15px;

    background:
        rgba(197, 60, 60, 0.12);

    color:
        var(--danger);

    border-radius: 8px;

    margin-bottom: 20px;
}


/* ========================================================= */
/* PRIORITÄTEN */
/* ========================================================= */

.priority-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 20px;
}


.priority {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    cursor: pointer;

    transition:
        0.2s;
}


.priority span {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.priority-low:hover {

    background:
        rgba(40, 167, 100, 0.10);
}


.priority-medium:hover {

    background:
        rgba(220, 185, 40, 0.10);
}


.priority-high:hover {

    background:
        rgba(225, 135, 25, 0.12);
}


.priority-critical:hover {

    background:
        rgba(220, 60, 60, 0.12);
}


/* ========================================================= */
/* ZUSAMMENFASSUNG */
/* ========================================================= */

.summary {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;

    margin-top: 20px;
}


.summary > div {

    padding: 14px;

    background:
        var(--soft-background);

    border-radius: 9px;
}


.summary span,
.summary-text span {

    display: block;

    color: var(--muted);

    font-size: 13px;

    margin-bottom: 5px;
}


.summary-text {

    margin-top: 20px;
}


/* ========================================================= */
/* ERFOLGSSEITE */
/* ========================================================= */

.success-card {

    text-align: center;

    padding:
        50px 35px;
}


.success-icon {

    width: 70px;

    height: 70px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(22, 133, 91, 0.15);

    color:
        var(--success);

    font-size: 38px;

    border-radius: 50%;
}


.ticket-number {

    display: inline-flex;

    flex-direction: column;

    margin: 20px;

    padding:
        15px 30px;

    background:
        var(--soft-background);

    border-radius: 10px;
}


/* ========================================================= */
/* SUPPORTFILTER */
/* ========================================================= */

.filter-bar {

    display: grid;

    grid-template-columns:
        1fr 220px auto;

    gap: 12px;
}


.filter-select {

    width: auto;
}


/* ========================================================= */
/* SUPPORT-TICKETS */
/* ========================================================= */

.support-ticket {

    background:
        var(--card);

    border:
        1px solid var(--border);

    border-radius: 14px;

    padding: 25px;

    margin-top: 18px;

    box-shadow:
        0 5px 20px var(--shadow);

    transition:
        background 0.3s ease;
}


.ticket-top {

    display: flex;

    justify-content: space-between;

    gap: 20px;
}


.ticket-top h2 {

    margin:
        6px 0;
}


.ticket-id {

    color:
        var(--primary);

    font-weight:
        bold;
}


.status {

    height:
        fit-content;

    padding:
        7px 12px;

    border-radius:
        20px;

    font-size:
        13px;

    font-weight:
        bold;
}


.status-offen {

    background:
        rgba(217, 119, 6, 0.15);

    color:
        var(--warning);
}


.status-in-bearbeitung {

    background:
        rgba(70, 110, 230, 0.15);

    color:
        var(--primary);
}


.status-erledigt {

    background:
        rgba(22, 133, 91, 0.15);

    color:
        var(--success);
}


.support-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    margin:
        20px 0;
}


.support-grid div {

    background:
        var(--soft-background);

    padding: 13px;

    border-radius: 8px;
}


.support-grid span {

    display: block;

    color:
        var(--muted);

    font-size:
        12px;

    margin-bottom:
        5px;
}


.ticket-details {

    border-top:
        1px solid var(--border);

    padding-top:
        15px;
}


.ticket-details h3 {

    font-size:
        14px;

    margin-bottom:
        5px;
}


.status-form {

    display: flex;

    justify-content:
        flex-end;

    gap:
        10px;

    margin-top:
        20px;

    padding-top:
        20px;

    border-top:
        1px solid var(--border);
}


.empty {

    margin-top:
        20px;

    text-align:
        center;

    color:
        var(--muted);
}


/* ========================================================= */
/* RESPONSIVE DESIGN */
/* ========================================================= */

@media (max-width: 700px) {

    .header-inner {

        align-items:
            flex-start;
    }


    .theme-label {

        display:
            none;
    }


    .theme-switch {

        width:
            70px;
    }


    .theme-switch input:checked
    + .theme-slider
    .theme-knob {

        transform:
            translateX(30px);
    }


    .choice-grid {

        grid-template-columns:
            1fr;
    }


    .summary {

        grid-template-columns:
            1fr;
    }


    .support-grid {

        grid-template-columns:
            1fr 1fr;
    }


    .filter-bar {

        grid-template-columns:
            1fr;
    }


    .button-row {

        flex-wrap:
            wrap;
    }

}