/*
Theme Name: Sportbusinessjobs Child
Template: astra
Version: 1.0
*/

/* =========================
   FONT
========================= */

body,
.job-title,
.job-company,
.job-location,
.job-category,
.dh-title,
.dh-meta,
.apply-card,
.ac-meta-item {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================
   GLOBALE BUTTONS
========================= */

a.button,
button,
input[type="button"],
input[type="submit"],
.button,
.ast-button,
.menu-item a.ast-button,
.wp-block-button__link,
.nav-menu .ast-button {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a9e 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 20px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.25) !important;
    transition: opacity 0.2s, box-shadow 0.2s !important;
    letter-spacing: 0.1px !important;
    display: inline-block;
}

a.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover,
.ast-button:hover,
.wp-block-button__link:hover {
    opacity: 0.9 !important;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.35) !important;
    color: #fff !important;
}

/* Navigation "JOB EINTRAGEN" Button */
.main-header-bar .ast-button,
.main-navigation .ast-button,
header .ast-button {
    padding: 10px 22px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}




/* =========================
   FORCE OVERRIDE (ASTRA FIX)
========================= */

.job_listings,
ul.job_listings {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
}

/* =========================
   SUCHBOX
========================= */

/* Hintergründe weg */
.job_filters,
.job_filters form,
.job-filters-wrapper,
.job_filters .filter_job_types,
.job_filters ul.filter_job_types,
ul.job_types_filter,
.job_filters + .showing_jobs,
.job-manager-filter,
#job-manager-job-listings {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Kategorie-Feld ausblenden */
.job_filters .search_categories {
    display: none !important;
}

/* Felder in einer Reihe */
.job_filters .search_jobs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.job_filters .search_keywords,
.job_filters .search_location {
    flex: 1;
    min-width: 180px;
}

.job_filters .search_keywords input,
.job_filters .search_location input {
    width: 100% !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 10px !important;
    padding: 11px 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #0b0f19 !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
}

.job_filters .search_keywords input:focus,
.job_filters .search_location input:focus {
    border-color: #1e3a5f !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08) !important;
    outline: none !important;
}

/* Submit Button Suchbox */
.job_filters .search_submit {
    flex: 0 0 auto;
}

.job_filters input[type="submit"],
.job_filters button[type="submit"] {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a9e 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 11px 28px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    white-space: nowrap;
    width: auto !important;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2) !important;
    transition: opacity 0.2s, box-shadow 0.2s !important;
}

.job_filters input[type="submit"]:hover,
.job_filters button[type="submit"]:hover {
    opacity: 0.9 !important;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3) !important;
}

/* Job-Typ Filter – Chip-Style */
.job_filters .filter_job_types {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    list-style: none;
    padding: 8px 0 !important;
}

.job_filters .filter_job_types li {
    display: flex;
    align-items: center;
}

.job_filters .filter_job_types li input[type="checkbox"] {
    display: none;
}

.job_filters .filter_job_types li label {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #e4e7ec;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #5a6472;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.job_filters .filter_job_types li input[type="checkbox"]:checked + label {
    background: #1e3a5f;
    color: #fff;
    border-color: #1e3a5f;
}

.job_filters .filter_job_types li label:hover {
    border-color: #1e3a5f;
    color: #1e3a5f;
}

/* =========================
   JOB LIST – CARDS
========================= */

.job-row {
    list-style: none;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.job-row:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.job-row-inner {
    display: flex;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 20px;
    text-decoration: none !important;
    background: transparent;
    border-radius: 12px;
}

.job-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

/* Logo */
.job-logo {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
}

.job-logo img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fb;
    border: 1px solid #eef0f2;
    padding: 4px;
}

.job-logo:empty::after {
    content: "";
    display: block;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #f0f2f5;
    border: 1px solid #eef0f2;
}

/* Text */
.job-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 12px;
    width: 100%;
}

.job-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #0b0f19;
    letter-spacing: -0.2px;
}

.job-company {
    font-size: 12px;
    color: #8a93a2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.job-row-top,
.job-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.job-location {
    font-size: 13px;
    color: #5a6472;
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-location::before {
    content: "📍";
    font-size: 11px;
    opacity: 0.6;
}

.job-category {
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a9e 100%);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.1px;
    box-shadow: 0 1px 4px rgba(30, 58, 95, 0.2);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    /* Suchfelder */
    .job_filters .search_jobs {
        flex-direction: column;
        width: 100%;
        padding: 0 !important;
        margin-bottom: 12px !important;
    }

    .job_filters .search_keywords,
    .job_filters .search_location,
    .job_filters .search_submit {
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .job_filters input[type="submit"],
    .job_filters button[type="submit"] {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center;
    }

    /* Job Cards */
    .job-row-inner {
        flex-direction: row !important;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .job-left {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .job-logo,
    .job-logo a,
    .job-logo img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        position: relative !important;
        width: 46px !important;
        height: 46px !important;
        flex-shrink: 0 !important;
    }

    .job-main {
        flex: 1;
        min-width: 0;
        margin-left: 8px !important;
    }

    .job-row-top,
    .job-row-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }

    .job-title {
        word-break: break-word;
    }
}

/* =========================
   JOB DETAIL
========================= */

.job-detail {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
}

.job-header {
    max-width: 1100px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.dh-main-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
}

.dh-logo img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    object-fit: contain;
    padding: 5px;
    background: #fff;
}

.dh-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #1e3a5f;
}

.dh-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #5a6472;
    font-size: 16px;
}

.dh-sep {
    color: #ccc;
}

.job-layout {
    display: flex;
    gap: 40px;
}

.job-content {
    flex: 2;
}

.content-card {
    background: #fff;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

/* Sidebar */
.job-sidebar {
    flex: 1;
    min-width: 300px;
}

.apply-card {
    position: sticky;
    top: 20px;
    border: 1px solid #eef0f2;
    padding: 25px;
    border-radius: 12px;
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.apply-card h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Apply Button */
.ac-apply-wrapper .application_button {
    display: block;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a9e 100%) !important;
    color: #fff !important;
    text-align: center;
    padding: 13px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.1px;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.35);
}

.ac-apply-wrapper .application_button:hover {
    opacity: 0.92 !important;
    box-shadow: 0 4px 18px rgba(30, 58, 95, 0.45) !important;
}

.ac-meta-list {
    margin-top: 20px;
    border-top: 1px solid #eef0f2;
    padding-top: 15px;
}

.ac-meta-item {
    font-size: 14px;
    margin-bottom: 8px;
    color: #5a6472;
}

.ac-meta-item strong {
    color: #1e3a5f;
}

/* Astra Title/Banner ausblenden */
.single-job_listing .ast-single-post-order,
.single-job_listing .entry-header,
.single-job_listing .main-header-bar-navigation + .ast-single-post-order {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Astra Container für Job-Detail aufheben */
.single-job_listing #primary,
.single-job_listing .site-main,
.single-job_listing #content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Astra Site-Header unangetastet lassen */
.single-job_listing .site-header,
.single-job_listing #masthead,
.single-job_listing .ast-container {
    max-width: unset !important;
    width: unset !important;
    padding-left: unset !important;
    padding-right: unset !important;
}

/* Job Detail Responsive */
@media (max-width: 900px) {
    .job-layout {
        flex-direction: column;
    }

    .job-sidebar {
        order: -1;
        width: 100%;
    }

    .apply-card {
        position: static;
    }

    .dh-main-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   ÄHNLICHE JOBS
========================= */

.similar-jobs {
    margin-top: 20px;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    background: #f9fafb;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.similar-jobs__title {
    font-size: 16px;
    font-weight: 700;
    color: #0b0f19;
    margin: 0 0 14px 0;
    font-family: 'Inter', sans-serif;
}

.similar-jobs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.similar-jobs__item {
    border-radius: 8px;
    transition: background 0.15s;
}

.similar-jobs__item:not(:last-child) {
    border-bottom: 1px solid #eef0f2;
    padding-bottom: 10px;
    margin-bottom: 6px;
}

.similar-jobs__link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    padding: 6px 4px;
    border-radius: 8px;
    transition: background 0.15s;
}

.similar-jobs__link:hover {
    background: #f0f2f5;
}

.similar-jobs__logo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.similar-jobs__logo img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    border: 1px solid #eef0f2;
    background: #fff;
    padding: 3px;
}

.similar-jobs__logo--empty {
    background: #eef0f2;
    border-radius: 6px;
    width: 36px;
    height: 36px;
}

.similar-jobs__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.similar-jobs__job-title {
    font-size: 13px;
    font-weight: 600;
    color: #0b0f19;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-jobs__company {
    font-size: 11px;
    color: #8a93a2;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Desktop: Mobile-Box verstecken */
.similar-jobs--mobile {
    display: none;
}

/* Mobile: Desktop-Box verstecken, Mobile-Box zeigen */
@media (max-width: 900px) {
    .similar-jobs--desktop {
        display: none;
    }

    .similar-jobs--mobile {
        display: block;
        margin-top: 30px;
    }
}

/* =========================
   BUTTON AUSNAHMEN
========================= */

/* Canvas/Hamburger Menü – KEIN Button-Style */
.ast-mobile-menu-buttons,
.ast-mobile-menu-buttons button,
.menu-toggle,
.ast-menu-toggle,
.ast-mobile-menu-trigger,
button.ast-mobile-menu-trigger,
.ast-header-break-point button {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
    border-radius: 0 !important;
}

/* Header "JOB EINTRAGEN" Button – Astra überschreibt mit eigenem Inline-Style */
#masthead .ast-button,
#masthead .menu-item a.ast-button,
.ast-primary-header-bar .menu-item a.ast-button,
.main-header-bar .menu-item a.ast-button {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a9e 100%) !important;
    background-image: linear-gradient(135deg, #1e3a5f 0%, #2d5a9e 100%) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.25) !important;
    text-decoration: none !important;
    letter-spacing: 0.1px !important;
    border: none !important;
}

#masthead .ast-button:hover,
#masthead .menu-item a.ast-button:hover,
.main-header-bar .menu-item a.ast-button:hover {
    opacity: 0.9 !important;
    color: #fff !important;
}


/* =========================
   HEADER CTA BUTTON – Maximum Spezifität
========================= */

html body #masthead .main-header-bar .ast-builder-menu .menu-item a.ast-button,
html body #masthead .main-header-bar .menu-item a.ast-button,
html body header#masthead a.ast-button,
html body .main-header-bar a.ast-button {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a9e 100%) !important;
    background-color: #1e3a5f !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.25) !important;
    text-decoration: none !important;
    letter-spacing: 0.1px !important;
    border: none !important;
    display: inline-block !important;
}

html body #masthead a.ast-button:hover,
html body .main-header-bar a.ast-button:hover {
    opacity: 0.9 !important;
    color: #fff !important;
}