:root {
    --hvo-red: #b3202a;
    --hvo-red-2: #8f1a22;
    --hvo-bg: #f7f7f8;
}

body {
    background: var(--hvo-bg);
    margin: 0;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: #111;
}

/* Layout */
.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 14px 12px 28px;
}

    .container.backend {
        max-width: 1320px;
    }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.05);
    margin-bottom: 12px;
}

    .header h2 {
        margin: 0;
        font-size: 18px;
    }

    .header nav {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
    }

.navlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    color: #111;
}

    .navlink:hover {
        border-color: rgba(0,0,0,.18);
    }

    .navlink.primary {
        background: var(--hvo-red);
        border-color: var(--hvo-red);
        color: #fff;
    }

        .navlink.primary:hover {
            background: var(--hvo-red-2);
            border-color: var(--hvo-red-2);
        }

/* Cards and basic controls */
.card {
    border: 0;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 1px 0 rgba(0,0,0,.05);
    margin-bottom: 12px;
}

/* Basic "btn" styling (ohne Bootstrap) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    color: #111;
    text-decoration: none;
    cursor: pointer;
}

    .btn:hover {
        border-color: rgba(0,0,0,.18);
    }

    .btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.btn-hvo {
    background: var(--hvo-red);
    border-color: var(--hvo-red);
    color: #fff;
}

    .btn-hvo:hover {
        background: var(--hvo-red-2);
        border-color: var(--hvo-red-2);
        color: #fff;
    }

.form-control, .form-select, select, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="datetime-local"], input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    box-sizing: border-box;
}

/* Primary action stays visible (mobile first) */
.hvo-top-primary {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--hvo-bg);
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (max-width:576px) {
    .btn, .form-control, .form-select {
        min-height: 46px;
        font-size: 1.05rem;
    }

    .hvo-primary-action {
        width: 100%;
        font-size: 1.2rem;
        padding: 14px 16px;
        border-radius: 16px;
    }
}

/* Lists as touch friendly cards */
.hvo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hvo-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    color: #111;
}

    .hvo-list-item:hover {
        border-color: rgba(0,0,0,.18);
    }

.hvo-list-title {
    font-weight: 650;
}

.hvo-list-sub {
    opacity: .75;
    font-size: 13px;
    margin-top: 2px;
}

.hvo-chevron {
    font-size: 22px;
    opacity: .55;
    padding-left: 10px;
}

/* Badges */
.hvo-badge {
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.4;
}

.hvo-badge-warn {
    background: var(--hvo-red);
}

.hvo-badge-ok {
    background: #178a5b;
}

/* Desktop backend tables better readable */
@media (min-width:992px) {
    .table td, .table th {
        vertical-align: middle;
    }
}
