/* TSV Stellen — oeffentliche Kacheln */
.tsv-stellen-intro {
    background: #eaf3fb;
    border-left: 4px solid #257bc1;
    padding: 20px 22px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0 30px;
}
.tsv-stellen-intro p {
    margin: 0;
    color: #0c2941;
    line-height: 1.6;
}

.tsv-stellen-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #64748b;
}

.tsv-stellen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.tsv-stellen-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.tsv-stellen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.tsv-stellen-card-header {
    background: #15446b;
    color: #fff;
    padding: 15px 20px;
}
.tsv-stellen-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff !important;
}
.tsv-stellen-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.tsv-stellen-section {
    margin-bottom: 14px;
}
.tsv-stellen-section h4 {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #257bc1;
    font-weight: 600;
}
.tsv-stellen-section p {
    margin: 0;
    color: #374151;
    line-height: 1.55;
}
.tsv-stellen-apply {
    margin-top: auto;
    align-self: flex-start;
    display: inline-block;
    background: #15446b;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.25s ease;
}
.tsv-stellen-apply:hover {
    background: #0c2941;
}

/* Verwaltung */
.tsv-stellen-denied {
    background: #fff3cd;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    color: #78350f;
}
.tsv-stellen-flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-weight: 500;
}
.tsv-stellen-flash.ok {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}
.tsv-stellen-flash.err {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.tsv-stellen-admin h2 {
    color: #0c2941;
    margin-top: 1.2em;
}
.tsv-stellen-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
}
.tsv-stellen-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 500;
    color: #0c2941;
}
.tsv-stellen-form label em {
    color: #dc2626;
    font-style: normal;
}
.tsv-stellen-form input[type="text"],
.tsv-stellen-form textarea,
.tsv-stellen-form select {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
}
.tsv-stellen-form textarea {
    resize: vertical;
    min-height: 100px;
}
.tsv-stellen-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.tsv-stellen-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0c2941 !important;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    font: inherit;
    transition: background 0.2s ease;
}
.tsv-stellen-btn:hover {
    background: #f1f5f9;
}
.tsv-stellen-btn.primary {
    background: #15446b;
    color: #fff !important;
    border-color: #15446b;
}
.tsv-stellen-btn.primary:hover {
    background: #0c2941;
}

.tsv-stellen-history {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.tsv-stellen-history th,
.tsv-stellen-history td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}
.tsv-stellen-history th {
    background: #f1f5f9;
    font-weight: 600;
    color: #0c2941;
}
.tsv-stellen-history tr:last-child td {
    border-bottom: none;
}
.tsv-stellen-history tr.status-inaktiv td {
    color: #64748b;
}
.tsv-stellen-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tsv-stellen-badge.aktiv {
    background: #d1fae5;
    color: #065f46;
}
.tsv-stellen-badge.inaktiv {
    background: #e2e8f0;
    color: #475569;
}
.tsv-stellen-row-actions a {
    display: inline-block;
    margin-right: 10px;
    color: #257bc1;
    text-decoration: none;
    font-size: 0.9rem;
}
.tsv-stellen-row-actions a:hover {
    text-decoration: underline;
}
.tsv-stellen-row-actions a.danger {
    color: #dc2626;
}
