/* Pfefferwerk Jobs Plugin Styles */
.pfefferwerk-jobs-container {
    
    color: #333;
    max-width:1200px;
    margin: 0 auto;
}

/* Header und Suchleiste */
.pfefferwerk-jobs-header {
    /*background:  linear-gradient(#f6f6f6, #f9f9f9); /* #df091b; /*#fffbfb; */
    background:linear-gradient(#fbe8e9, #ffffff);
    border-radius: 3px;
    padding: 30px 175px;
    margin-bottom: 30px;
    
}
@media screen and (max-width: 767px) {
    .pfefferwerk-jobs-header {
        padding:10px 10px
    }
}

.pfefferwerk-jobs-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
}

/* Neue Suchleiste mit Flex-Layout */
.pfefferwerk-search-bar {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 16px;
}

.pfefferwerk-search-box {
    position: relative;
    flex: 1;
}

.pfefferwerk-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 20px;
    height: 20px;
}

#pfefferwerk-job-search {
    width: 100%;
    height: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid #dfdfdf;
    border-radius: 2px;
    font-size: 0.875rem;
    line-height: 1.5;
    min-height: 42px;
    background:#fff;
}

#pfefferwerk-job-search:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Filter-Buttons in der Suchleiste */
.pfefferwerk-filter-buttons {
    display: flex;
    gap: 8px;
}

.pfefferwerk-filter-button,
.pfefferwerk-reset-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    /*background-color: #fff;*/
    /*border: 1px solid #efefef;*/
    background-color: #f9f9f9;
    color: #df091b;
    border: 1px solid #df091b;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    /*color: #444;*/
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    white-space: nowrap;
}

.pfefferwerk-filter-button:hover,
.pfefferwerk-reset-button:hover,
.pfefferwerk-filter-button:active,
.pfefferwerk-reset-button:active, 
.pfefferwerk-filter-button:focus,
.pfefferwerk-reset-button:focus {
    /*background-color: #f0f0f0;*/
    /*color:#222;*/
    background-color:#fff;
    color: #df091b;
}

.pfefferwerk-filter-button #pfefferwerk-filter-chevron { color: #df091b;}
.pfefferwerk-filter-button #pfefferwerk-filter-chevron svg {
    color:#333;
    width:16px;
    height:16px;
    margin-left:8px;
     /*color: #999;*/
     color: #df091b;
    
}
.pfefferwerk-filter-button #pfefferwerk-filter-chevron.down svg {
    transform:rotate(180deg);
    
    
}

.pfefferwerk-filter-button:hover,
.pfefferwerk-reset-button:hover {
    /*background-color: #f9fafb;*/
}

.pfefferwerk-filter-icon,
.pfefferwerk-x-icon {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

/* Aktive Filter */
.pfefferwerk-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pfefferwerk-active-filter {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    /*background-color: #e0f2fe;*/
    /*color: #0369a1;*/
     background-color: #fbe8e9;
    color: #df091b;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    /*box-shadow: 1px 1px 4px rgba(223, 9, 27, 0.2)*/
    box-shadow:0px 1px 2px rgba(0, 0, 0, 0.2)
}

.pfefferwerk-remove-filter {
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*color: #0284c7;*/
    color: #df091b;
    cursor: pointer;
}

.pfefferwerk-remove-filter:hover {
    /*color: #0369a1;*/
        color: #b70514
}

.pfefferwerk-remove-filter svg {
    width: 14px;
    height: 14px;
}

/* Filter-Optionen */
.pfefferwerk-filter-options {
       background-color: #ffffff;
    border-radius: 3px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e5e5e5;
}

.pfefferwerk-filter-columns {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .pfefferwerk-filter-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pfefferwerk-filter-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pfefferwerk-filter-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 0;
    margin-bottom: 8px;
}

.pfefferwerk-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pfefferwerk-filter-option {
    display: flex;
    align-items: start;
}

.pfefferwerk-filter-checkbox {
    margin-top: 2px;
}

.pfefferwerk-filter-label {
    margin-left: 8px;
    font-size: 0.875rem;
    color: #4b5563;
}

/* Responsive Anpassungen für die Suchleiste */
@media (max-width: 768px) {
    .pfefferwerk-search-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .pfefferwerk-filter-buttons {
        display: flex;
        width: 100%;
    }
    
    .pfefferwerk-filter-button,
    .pfefferwerk-reset-button {
        flex: 1;
        justify-content: center;
    }
}

/* Loading State */
.pfefferwerk-jobs-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
}

.pfefferwerk-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(223, 9, 27, 0.2);
    border-radius: 50%;
    border-top-color:  #df091b;
    animation: pfefferwerk-spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes pfefferwerk-spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.pfefferwerk-jobs-error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 3px;
    padding: 16px;
    margin-bottom: 24px;
    color: #b91c1c;
}

/* Jobs Count */
.pfefferwerk-jobs-count {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align:center;
    
}

/* Jobs List */
.pfefferwerk-jobs-list {
    display: grid;
    gap: 16px;
    max-width:890px;
    padding: 20px;
    margin:10px auto;
    max-height: 100vh;
    /*min-height: 650px;*/
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-color: #66666666 transparent;
    scrollbar-width: thin;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
 
}



/* Job-Karten-Styling */
.pfefferwerk-job-card {
    
    background-color: white;
    background:linear-gradient(0deg, var(--base-2), #ffffff);
    border-radius: 3px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, transform 0.2s;
    margin-bottom: 20px;
}

.pfefferwerk-job-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.pfefferwerk-job-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.pfefferwerk-job-image {
    flex: 0 0 320px;
    height: 160px;
    border-radius: 3px;
    overflow: hidden;
}

.pfefferwerk-job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pfefferwerk-job-main {
    flex: 1;
}

.pfefferwerk-job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
}

.pfefferwerk-job-title a {
     color: #1f2937;
     text-decoration:none;
}

.pfefferwerk-job-title a:hover,
.pfefferwerk-job-title a:active,
.pfefferwerk-job-title a:focus {
     color: #1f2937;
     text-decoration:underline;
}

.pfefferwerk-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pfefferwerk-job-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.pfefferwerk-job-tag svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.pfefferwerk-job-tag.location {
    background-color: #fbe8e9;
    color: #df091b;
}

.pfefferwerk-job-tag.hours {
    background-color: #fbe8e9;
    color: #df091b;
}

.pfefferwerk-job-tag.type {
    background-color: #fbe8e9;
    color: #df091b;
}

.pfefferwerk-job-info {
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pfefferwerk-job-starts,
.pfefferwerk-job-location,
.pfefferwerk-job-institution {
    line-height: 1.5;
}

.pfefferwerk-job-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: #4b5563;
}

.pfefferwerk-job-date,
.pfefferwerk-job-deadline {
    display: flex;
    align-items: center;
}

.pfefferwerk-job-deadline {
    color: #b91c1c;
}

/* Job-Karten-Footer mit zwei Buttons */
.pfefferwerk-job-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e5e5e5;
    padding-top: 16px;
}

/* Gemeinsame Button-Styles */
.pfefferwerk-details-button,
.pfefferwerk-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
}


/* "Details ansehen" Button */
.pfefferwerk-details-button {
    background-color: #df091b;
    color: #fff;
    
}

.pfefferwerk-details-button:hover {
    background-color:#b70514;
    /*transform: translateY(-1px);*/
     color: #fff;
}

.pfefferwerk-details-button:active {
    transform: translateY(0);
}

/* "Jetzt bewerben" Button */
.pfefferwerk-apply-button {
    background-color: #f9f9f9;
    color: #df091b;
    border: 1px solid #df091b;
}

.pfefferwerk-apply-button:hover {
    background-color: #fff;
    /*transform: translateY(-1px);*/
    color: #df091b;
}

.pfefferwerk-apply-button:active {
    transform: translateY(0);
}

/* Responsive Anpassungen */
@media (max-width: 640px) {
    .pfefferwerk-job-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .pfefferwerk-details-button,
    .pfefferwerk-apply-button {
        width: 100%;
        text-align: center;
    }
}

/*
.pfefferwerk-details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color:  #df091b;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pfefferwerk-details-button:hover {
    background-color:  #b70514;
}*/

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .pfefferwerk-job-content {
        flex-direction: column;
    }
    
    .pfefferwerk-job-image {
        flex: 0 0 auto;
        height: 160px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 16px;
    }
    
    .pfefferwerk-job-dates {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 640px) {    
    .pfefferwerk-job-footer {
        justify-content: center;
    }
    
    .pfefferwerk-details-button {
        width: 100%;
    }
}
/* ---- */
