body {
    background:
        radial-gradient(circle at top right, rgba(0, 212, 255, 0.10), transparent 28%),
        radial-gradient(circle at top left, rgba(0, 119, 255, 0.10), transparent 24%),
        linear-gradient(180deg, #0a1220 0%, #0f1727 100%);
    color: #e5edf8;
    min-height: 100vh;
}

.navbar {
    background: rgba(10, 18, 32, 0.88) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(82, 168, 255, 0.18) !important;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .text-secondary {
    color: #eaf2ff !important;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
    color: #66d9ff !important;
}

.card {
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(21, 31, 50, 0.98) 0%, rgba(15, 23, 39, 0.98) 100%);
    border: 1px solid rgba(92, 182, 255, 0.14) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    color: #edf4ff;
}

.card-stat {
    background:
        linear-gradient(135deg, rgba(24, 37, 60, 1) 0%, rgba(12, 24, 45, 1) 100%);
    position: relative;
    overflow: hidden;
}

.card-stat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(102, 217, 255, 0.08), transparent);
    transform: translateX(-100%);
    animation: shine 4.5s linear infinite;
}

@keyframes shine {
    to { transform: translateX(100%); }
}

.table,
.table th,
.table td,
.form-label,
h1, h2, h3, h4, h5,
strong,
label {
    color: #edf4ff !important;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.02);
    --bs-table-border-color: rgba(117, 147, 188, 0.18);
}

.text-secondary,
.small.text-secondary,
div.text-secondary {
    color: #9cb0cc !important;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(113, 154, 214, 0.22);
    color: #f7fbff;
    border-radius: 14px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: rgba(102, 217, 255, 0.65);
    box-shadow: 0 0 0 .25rem rgba(0, 217, 255, 0.14);
}

.form-control::placeholder {
    color: #8da4c3;
}

.btn-primary {
    background: linear-gradient(135deg, #00b8ff 0%, #0066ff 100%);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 140, 255, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #18c3ff 0%, #1d72ff 100%);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger {
    border-radius: 14px;
}

.alert {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.badge.text-bg-success {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #85ffd0 !important;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.badge.text-bg-danger {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #ffb4b4 !important;
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.signature-wrapper {
    border: 1px dashed rgba(102, 217, 255, 0.42);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

#signature-pad {
    width: 100%;
    height: 220px;
    display: block;
    touch-action: none;
    background: #ffffff;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.login-hero {
    background:
        linear-gradient(135deg, rgba(0, 184, 255, 0.16), rgba(0, 102, 255, 0.12)),
        rgba(255,255,255,0.02);
    border: 1px solid rgba(102, 217, 255, 0.12);
    border-radius: 24px;
    padding: 1rem;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: rgba(102, 217, 255, 0.08);
    border: 1px solid rgba(102, 217, 255, 0.18);
    color: #bfefff;
    font-size: .85rem;
    margin-bottom: 1rem;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #005eff);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.7);
}

.page-title-accent {
    color: #66d9ff;
}

@media (max-width: 991px) {
    .navbar .text-secondary {
        display: none;
    }
}


/* Hotfix Final: Formulare wieder vollständig bedienbar */
main,
.container,
.row,
.col-12,
.col-md-2,
.col-md-4,
.col-md-6,
.col-md-8,
.col-lg-4,
.col-lg-8,
.card,
.card-body,
form,
label,
input,
select,
textarea,
button,
a.btn {
    position: relative;
    z-index: 2;
}

.navbar {
    z-index: 1030;
}

.navbar::before,
.navbar::after,
.card::before,
.card::after,
.card-stat::before,
.card-stat::after,
.login-hero::before,
.login-hero::after {
    pointer-events: none;
}

.signature-wrapper {
    position: relative;
    z-index: 3;
}

#signature-pad {
    position: relative;
    z-index: 4;
    pointer-events: auto;
    cursor: crosshair;
}

.form-control,
.form-select,
textarea,
button,
.btn,
a.btn {
    pointer-events: auto !important;
}

.card-body {
    overflow: visible;
}

@media (max-width: 991px) {
    .collapse.navbar-collapse {
        background: rgba(10, 18, 32, 0.98);
        border-radius: 16px;
        padding: .75rem;
        margin-top: .75rem;
    }
}


/* PDF / Print */
.pdf-page {
    max-width: 960px;
    margin: 0 auto;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid rgba(102, 217, 255, 0.25);
}

.pdf-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.pdf-subtitle {
    color: #9cb0cc;
    margin-top: .35rem;
}

.pdf-meta {
    text-align: right;
    font-size: .95rem;
    color: #9cb0cc;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.pdf-field {
    border: 1px solid rgba(113, 154, 214, 0.22);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
}

.pdf-field.full {
    grid-column: 1 / -1;
}

.pdf-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9cb0cc;
    margin-bottom: .35rem;
}

.pdf-value {
    font-size: 1rem;
    color: #edf4ff;
    word-break: break-word;
}

.pdf-signature img {
    max-width: 100%;
    max-height: 180px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(113, 154, 214, 0.22);
    padding: .5rem;
}

.print-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .pdf-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    nav,
    .print-toolbar,
    .btn,
    .navbar,
    .alert {
        display: none !important;
    }

    main,
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card,
    .pdf-field {
        box-shadow: none !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cfd6df !important;
    }

    .table,
    .table th,
    .table td,
    .pdf-value,
    .pdf-label,
    .pdf-title,
    .pdf-subtitle,
    .pdf-meta,
    h1, h2, h3, h4, h5, p, span, div, strong {
        color: #000000 !important;
    }

    a {
        color: #000000 !important;
        text-decoration: none !important;
    }

    .badge {
        border: 1px solid #999 !important;
        color: #000 !important;
        background: #fff !important;
    }

    .pdf-page {
        max-width: 100%;
    }
}


.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, 0.15) !important;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}


select[multiple].form-select {
    min-height: 180px;
}
