﻿:root {
    --bg: #0b1220;
    --panel: #0f172a;
    --text: #e6edf7;
    --muted: #8aa0bd;
    --border: rgba(148,163,184,.18);
    --brand: #2dd4bf;
    --brand-2: #60a5fa;
}

/* Base */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Arial;
    background: linear-gradient(140deg,#0b1220 0%,#0c1530 55%,#0b1220 100%);
    color: var(--text);
}

/* Header/Footer/Layout */
.shell {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.hdr {
    position: sticky;
    top: 0;
    backdrop-filter: saturate(160%) blur(8px);
    background: linear-gradient(180deg,rgba(2,6,23,.85),rgba(2,6,23,.55));
    border-bottom: 1px solid var(--border);
}

.hdr-in {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

    .brand img {
        height: 28px;
    }

    .brand .name {
        font-weight: 700;
    }

.tag {
    font-size: 12px;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    background: rgba(17,24,39,.6);
    color: inherit;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg,var(--brand),var(--brand-2));
    color: #041018;
    border: 0;
}

.ftr {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

/* Hero */
.hero {
    position: relative;
    border-radius: 18px;
    padding: 36px;
    background: linear-gradient(135deg,rgba(34,197,94,.2),rgba(37,99,235,.25)), linear-gradient(0deg,rgba(15,23,42,.65),rgba(15,23,42,.65));
    border: 1px solid var(--border);
}

    .hero h1 {
        font-size: 40px;
        margin: 0 0 12px;
    }

    .hero p {
        color: #c9d6e5;
        margin: 0 0 18px;
    }

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Tiles */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 18px;
    margin-top: 20px;
}

.tile {
    position: relative;
    background: linear-gradient(180deg,rgba(15,23,42,.96),rgba(2,6,23,.92));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

    .tile:before {
        content: \"\";
        position: absolute;
        inset: -1px;
        background: conic-gradient(from 180deg at 50% 50%,rgba(96,165,250,.0), rgba(96,165,250,.25),rgba(45,212,191,.25),rgba(96,165,250,.0));
        filter: blur(16px);
        opacity: 0;
        transition: opacity .25s ease;
    }

    .tile:hover:before {
        opacity: 1;
    }

    .tile h3 {
        margin: 12px 0 6px;
        font-size: 18px;
    }

    .tile p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
    }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(2,6,23,.6);
}

.icon {
    width: 22px;
    height: 22px;
}

/* --- Subheader (MES.Work + Breadcrumbs) schöner gestalten --- */
.subhdr {
    background: linear-gradient(135deg, rgba(34,197,94,.25), rgba(37,99,235,.25));
    border: 1px solid var(--border);
    border-radius: 18px; /* Rundung */
    padding: 14px 22px; /* Innenabstand */
    margin-bottom: 1.5rem; /* Abstand zum Inhalt darunter */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Innenbereich des Subheaders */
.subhdr-in {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Linke Seite: MES.Work Titel */
.subhdr .sub-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

/* Breadcrumbs angepasst */
.subhdr .crumbs {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.9;
}

    .subhdr .crumbs a {
        color: var(--text);
        text-decoration: none;
        opacity: 0.85;
        transition: opacity 0.2s;
    }

        .subhdr .crumbs a:hover {
            opacity: 1;
            text-decoration: underline;
        }

    .subhdr .crumbs .sep {
        margin: 0 6px;
        opacity: 0.6;
    }


/* Breadcrumbs – bessere Lesbarkeit */
.crumbs {
    font-size: 13px;
    color: var(--text);
}

    .crumbs a {
        color: var(--text);
        opacity: .9;
        text-decoration: none;
    }

        .crumbs a:hover {
            text-decoration: underline;
        }

    .crumbs .sep {
        opacity: .6;
        margin: 0 6px;
    }

/* Login-Info links unter dem Brand */
.logged {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

    .logged strong {
        color: var(--text);
    }

.crumbs {
    font-size: 13px;
    color: var(--text);
}

    .crumbs a {
        color: var(--text);
        opacity: .92;
        text-decoration: none;
    }

        .crumbs a:hover {
            text-decoration: underline;
        }

    .crumbs .sep {
        opacity: .6;
        margin: 0 6px;
    }


/* Modal */
.modal.hide {
    display: none
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    z-index: 50;
    padding: 20px;
}

.modal-card {
    width: min(780px, 96vw);
    background: rgba(15,23,42,.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border)
}

.modal-body {
    padding: 16px
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border)
}

.modal-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    align-items: end;
}

    .modal-grid .full {
        grid-column: 1/-1
    }

.qr-wrap {
    grid-column: 1/-1;
    display: flex;
    justify-content: center;
    padding-top: 8px
}

.modal input {
    width: 100%
}


/* Globaler Seitenrand – 20px Abstand vom Fensterrand */
body {
    padding: 20px;
}

.shell {
    margin: 0 auto;
    max-width: 1600px; /* optional: zentriert den Inhalt */
}

/* --- Abgerundete Top-Bar / Headerbereich --- */
.page-header {
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, #0b2d36, #133b61);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Formularcontainer: zweispaltig --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    align-items: start;
}

    .form-grid label {
        font-weight: 600;
        margin-bottom: 0.3rem;
        display: block;
    }

    .form-grid input,
    .form-grid select,
    .form-grid textarea {
        width: 100%;
        border-radius: 6px;
        border: 1px solid #3b4b5f;
        background: #0f1829;
        color: #fff;
        padding: 0.4rem 0.6rem;
    }

/* --- Buttons hübscher nebeneinander --- */
.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Filterleiste: responsive, kein Überlaufen nach rechts */
.filter-grid {
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    align-items: end;
}

    .filter-grid input,
    .filter-grid select {
        width: 100%;
        box-sizing: border-box;
    }

.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .filter-actions .inline {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        padding-bottom: 8px;
    }
