/* ==========================================================================
   Karriere & BITE-Stellenportal (career.css)
   ========================================================================== */
.career-hero {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.career-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.08) 0%, rgba(254, 226, 226, 0.4) 50%, rgba(255, 255, 255, 0) 75%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    animation: float-glow 8s ease-in-out infinite alternate;
}

.career-hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.career-hero p {
    font-size: 1.15rem;
    color: #475569;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* 5 Kacheln Grid */
.career-pillars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 1250px;
    margin: -2rem auto 3rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.pillar-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.35rem 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    user-select: none;
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 25px rgba(0, 0, 0, 0.08);
}

.pillar-card.active {
    border-color: var(--drk-red, #e30613);
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
}

.pillar-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fee2e2;
    color: var(--drk-red, #e30613);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.08);
}

/* Lebendige Icon-Micro-Interactions */
.pillar-card[data-category="RETTUNGSDIENST"]:hover .pillar-icon svg {
    animation: ambulance-bump 0.4s ease infinite alternate;
}
@keyframes ambulance-bump {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-3px) rotate(-2deg); }
}

.pillar-card[data-category="FSJ"]:hover .pillar-icon svg {
    animation: heart-flutter 0.6s ease infinite;
}
@keyframes heart-flutter {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.22); }
    60% { transform: scale(1.08); }
}

.pillar-card[data-category="MOBILER SOZIALER DIENST"]:hover .pillar-icon svg {
    animation: icon-wiggle 0.5s ease;
}
@keyframes icon-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

.pillar-card[data-category="ALL"]:hover .pillar-icon svg,
.pillar-card[data-category="VERWALTUNG"]:hover .pillar-icon svg {
    animation: icon-pop 0.3s ease;
}
@keyframes icon-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.08); }
}

.pillar-card h3 {
    font-size: 1rem;
    margin: 0 0 0.35rem 0;
    color: #0f172a;
    font-weight: 800;
}

.pillar-card p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.pillar-hint {
    margin-top: 0.65rem;
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--drk-red, #e30613);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BITE Wrapper */
.bite-wrapper {
    max-width: 1250px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.bite-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    min-height: 450px;
}

.bite-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.bite-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #0f172a;
    font-weight: 800;
}

.bite-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}

.bite-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1100px) {
    .career-pillars {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .career-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .career-pillars {
        grid-template-columns: 1fr;
    }
    .bite-card {
        padding: 1.5rem 1rem;
    }
}

/* ==========================================================================
   BITE-Widget Custom DRK Styling Overrides
   ========================================================================== */
[data-bite-jobs-api-listing] form,
[data-bite-jobs-api-listing] .bite-filter-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

[data-bite-jobs-api-listing] label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 0.4rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-bite-jobs-api-listing] select,
[data-bite-jobs-api-listing] input[type="text"],
[data-bite-jobs-api-listing] input[type="search"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-bite-jobs-api-listing] select:focus,
[data-bite-jobs-api-listing] input:focus {
    border-color: var(--drk-red, #e30613);
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
}

[data-bite-jobs-api-listing] table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

[data-bite-jobs-api-listing] th {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border: none;
    text-align: left;
}

[data-bite-jobs-api-listing] tbody tr {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

[data-bite-jobs-api-listing] tbody tr:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

[data-bite-jobs-api-listing] td {
    padding: 1.15rem 1rem;
    font-size: 0.95rem;
    color: #334155;
    vertical-align: middle;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

[data-bite-jobs-api-listing] td:first-child {
    border-left: 1px solid #e2e8f0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-weight: 700;
}

[data-bite-jobs-api-listing] td:last-child {
    border-right: 1px solid #e2e8f0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

[data-bite-jobs-api-listing] a {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-block;
}

[data-bite-jobs-api-listing] tr:hover a,
[data-bite-jobs-api-listing] a:hover {
    color: var(--drk-red, #e30613);
}

[data-bite-jobs-api-listing] .bite-btn,
[data-bite-jobs-api-listing] button[type="submit"],
[data-bite-jobs-api-listing] input[type="submit"] {
    background-color: var(--drk-red, #e30613) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
    text-decoration: none !important;
}

[data-bite-jobs-api-listing] .bite-btn:hover,
[data-bite-jobs-api-listing] button[type="submit"]:hover {
    background-color: var(--drk-red-hover, #be000c) !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    [data-bite-jobs-api-listing] form,
    [data-bite-jobs-api-listing] .bite-filter-wrapper {
        grid-template-columns: 1fr;
    }

    [data-bite-jobs-api-listing] thead {
        display: none;
    }

    [data-bite-jobs-api-listing] tbody tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
    }

    [data-bite-jobs-api-listing] td {
        display: block;
        padding: 0.35rem 0;
        border: none !important;
    }

    [data-bite-jobs-api-listing] td:first-child {
        margin-bottom: 0.5rem;
    }
}