body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.back-btn {
    background-color: #64748b;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: bold;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    border-radius: 8px;
    padding: 24px;
    min-height: 165px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.card h4 {
    margin-top: 0;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.95em;
    color: #475569;
    line-height: 1.5;
}

.card-blue {
    border-left: 5px solid #2563eb;
}

.card-blue h4 {
    color: #1e3a8a;
}

.card-green {
    border-left: 5px solid #10b981;
}

.card-green h4 {
    color: #065f46;
}

.card-yellow {
    border-left: 5px solid #eab308;
}

.card-yellow h4 {
    color: #713f12;
}

.card-red {
    border-left: 5px solid #ef4444;
}

.card-red h4 {
    color: #991b1b;
}

.btn-link {
    display: block;
    text-align: center;
    background-color: #1e293b;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 1rem;
}

div.pageHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.smooth-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px auto;
}

#justiz-slider {
    position: absolute;
    z-index: 2;
    width: 60px !important;
    height: 4px !important;
    background-color: #3b82f6 !important;
    border-radius: 2px;
    pointer-events: none;
    display: none;
    transition: left 0.1s linear;
}

.diktat-wort {
    position: relative;
    z-index: 3;
    display: inline-block;
    white-space: pre-line;
    position: relative;
    z-index: 3;
    display: inline-block;
    white-space: pre-line;
    padding: 2px 4px;
    cursor: pointer;
    margin-right: 4px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}