@charset "utf-8";
@import "/lib/bootstrap/css/bootstrap.min.css";
@import "/lib/fonts/font-awesome/css/font-awesome.min.css";

:root {
    --brand: oklch(71% .19 127);
    --brand-dark: oklch(60% .19 127);
    --brand-light: oklch(96% .04 127);
    --accent: oklch(66% .17 127);
    --ink: oklch(25% .12 127);
    --danger: #d64545;
    --danger-dark: #b23434;
    --text: #232830;
    --text-muted: #6b7480;
    --border: #e1e5ea;
    --bg: #eef0f2;
    --card-bg: #ffffff;
    --radius: 12px;
    --shadow: 0 2px 6px rgba(20, 30, 40, 0.06), 0 8px 24px rgba(20, 30, 40, 0.06);
}

* {
    font-weight: normal;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html,
body {
    position: relative;
    display: block;
    top: 0;
    width: 100%;
    height: 100%;
    font-size: 100%;
    line-height: 140%;
    vertical-align: top;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
}

/* Login page: center the card on screen */
body:has(> .card:only-of-type) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

h1, h2, h3 {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.card h2, .card2 h2 {
    margin-bottom: 18px;
    color: var(--ink);
}

a {
    color: var(--brand);
}

.logbox {
    position: relative;
    margin: auto;
    width: 350px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 5px;
}

.input-group {
    margin: 0 0 14px 0;
}

.input-group-addon {
    min-width: 105px;
}

.input-group-text {
    background: var(--brand-light);
    color: var(--ink);
    border: 1px solid var(--border);
}

.form-control {
    border: 1px solid var(--border);
    padding: 10px 12px;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(120, 190, 30, 0.2);
    outline: none;
}

.buttonok {
    background: var(--brand);
    color: #fff;
    padding: 5px;
}

.eintrag {
    position: relative;
    margin: 20px auto;
    width: 350px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 5px;
}

.eintrag button {
    background-color: var(--brand);
    color: #fff;
    padding: 5px;
}

.badbutton {
    background-color: var(--danger);
    color: #fff;
    padding: 5px;
}

table,
tr,
th,
td {
    border: 1px solid var(--border);
}

.card {
    background: var(--card-bg);
    padding: 28px 30px;
    margin: 20px auto;
    border-radius: var(--radius);
    max-width: 400px;
    box-shadow: var(--shadow);
}

.card2 {
    background: var(--card-bg);
    padding: 24px 28px;
    margin: 20px auto;
    border-radius: var(--radius);
    max-width: 900px;
    box-shadow: var(--shadow);
}

.form .input {
    width: 95%;
    padding: 10px 12px;
    margin: 8px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.btn,
.btnr,
.btnregister {
    display: inline-block;
    padding: 11px 16px;
    border: none;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, transform 0.05s ease;
}

.btn {
    background: var(--brand);
    color: #fff;
}

.btnr {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    margin-top: 8px;
}

.btnregister {
    background: var(--brand);
    color: #fff;
}

.btn:hover {
    background: var(--brand-dark);
}

.btnr:hover {
    background: var(--danger);
    color: #fff;
}

.btn:active,
.btnr:active,
.btnregister:active {
    transform: scale(0.99);
}

.card form > .btn + .btnr,
.card form > .btnr {
    margin-top: 8px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px 10px;
    border: none;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.table tbody tr:hover {
    background: var(--brand-light);
}

.table th {
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.card2 small {
    color: var(--text-muted);
    display: block;
    margin-bottom: 14px;
}

#Systemmeldung,
.meldung,
#Warnmeldung {
    position: fixed;
    top: 1px;
    left: 1px;
    right: 1px;
    z-index: 999;
    display: block;
    box-sizing: border-box;
    background: #fff;
    color: var(--ink);
    text-align: center;
    margin: 0 auto;
    padding: 0;
    border: 0;
    height: 0;
    font-size: 1.0rem;
    line-height: 140%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(20, 20, 20, 0.15);
    animation-name: hoehe;
    animation-duration: 5.0s;
    animation-iteration-count: 1;
    animation-timing-function: ease-out
}

#Systemmeldung span {
    display: block;
    font-size: 1.1rem
}

@keyframes hoehe {
    0% {
        height: 90px;
        padding: 10px;
        border-bottom: var(--brand) 3px solid
    }

    95% {
        height: 90px;
        padding: 10px;
        border-bottom: var(--brand) 3px solid
    }

    100% {
        height: 0;
        padding: 0;
        border: 0
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: block;
    min-height: 100px;
    background: transparent;
    color: #fff;
    padding: 15px;
}

header .headnav {
    position: relative;
    top: 0;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    background: linear-gradient(90deg, #ffffff 0%, oklch(88% .10 127) 35%, oklch(71% .19 127) 100%);
    color: var(--text);
    font-size: 16px;
    letter-spacing: 0.3px;
    padding: 8px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 1200px;
}

.headnav .title,
.headnav nav {
    position: relative;
    display: inline-block;
    max-width: 40%;
    max-width: 40vw;
    overflow: hidden;
}

.headnav .title {
    color: var(--ink);
    display: flex;
    justify-content: center;
    align-items: center;
}

.headnav .title img {
    max-width: 90%;
    height: 30px;
    width: auto;
    margin: 2px auto 5px 0;
}

.headnav .title i {
    font-size: 40px;
    line-height: 40px;
    margin-right: 16px;
    color: var(--brand);
}

.headnav .title div {
    display: inline-block;
}

.headnav .title span {
    display: block;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: var(--text);
}

.headnav .title small {
    position: relative;
    margin: 0 auto 0 56px;
    display: block;
    font-size: 11px;
    line-height: 12px;
    text-align: left;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

.headnav ul {
    position: relative;
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    margin: 0;
    gap: 4px;
}

.headnav ul li {
    position: relative;
    width: 200px;
    height: 40px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background: transparent;
    border-radius: 8px;
    padding: 0 10px;
    cursor: default;
}

.headnav ul li ul {
    position: absolute;
    top: 44px;
    left: 0;
    z-index: 99;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    display: none;
    min-height: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.headnav ul li:hover .submenu {
    display: block;
}

.submenu:hover ul li ul {
    display: block;
}

.headnav ul li ul li {
    position: relative;
    border-bottom: 1px solid var(--border);
    width: 100%;
    height: auto;
    display: block;
    padding: 10px 12px;
    border-radius: 0;
}

.headnav ul li a,
.headnav ul li ul li a {
    width: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
}

.headnav ul li:hover {
    background: var(--brand-light);
}

.headnav ul li ul li:hover {
    background: var(--brand-light);
}

.headnav ul li i {
    font-size: 18px;
    line-height: 18px;
    margin-right: 8px;
    color: var(--brand);
}

.headnav ul li i:last-of-type {
    margin-left: 5px;
}

@media(max-width:950px) {
    .headnav ul li {
        width: 60px;
        justify-content: center;
        padding: 0;
    }

    .headnav ul li span {
        display: none;
    }
}

.headerbg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    display: block;
    height: 260px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.main_dash {
    margin: 0 auto;
    max-width: 1200px;
    padding-top: 130px;
    padding-bottom: 40px;
}

/* Responsive Design */
@media(max-width: 768px) {

    .card,
    .card2 {
        margin: 10px;
        padding: 18px;
        max-width: 95%;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group-text {
        width: 100%;
        justify-content: center;
        border-radius: 8px 8px 0 0 !important;
    }

    .input-group .form-control {
        border-radius: 0 0 8px 8px !important;
    }

    .btn,
    .btnr,
    .btnregister {
        width: 100%;
        margin-bottom: 10px;
    }

    .card2 {
        overflow-x: auto;
    }

    .table {
        min-width: 600px;
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 8px 5px;
    }

    header {
        min-height: 80px;
        padding: 10px;
    }

    .headnav {
        flex-direction: column;
        padding: 10px !important;
        border-radius: 12px;
    }

    .headnav .title {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .headnav nav {
        max-width: 100%;
        width: 100%;
    }

    .headnav ul {
        width: 100%;
        justify-content: space-around;
    }

    .headnav ul li {
        width: 50px;
        font-size: 12px;
        justify-content: center;
    }

    .headnav ul li i {
        font-size: 18px;
        margin-right: 0;
    }

    .logbox,
    .eintrag {
        width: 95%;
        margin: 10px auto;
    }

    .main_dash {
        padding-top: 170px;
    }
}

@media(max-width: 480px) {
    body {
        font-size: 14px;
    }

    .card h1,
    .card2 h1 {
        font-size: 22px;
    }

    .card h2,
    .card2 h2 {
        font-size: 18px;
    }

    .headnav ul li {
        width: 45px;
    }

    .headnav .title span {
        font-size: 14px;
    }

    .headnav .title small {
        font-size: 8px;
        margin-left: 50px;
    }

    .headnav .title i {
        font-size: 32px;
        margin-right: 10px;
    }

    .table {
        font-size: 12px;
    }

    .card form button[type='submit'] {
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media(min-width: 769px) and (max-width: 1024px) {
    .card {
        max-width: 500px;
    }

    .card2 {
        max-width: 90%;
    }

    .headnav ul li {
        width: 180px;
    }
}
