/**
 * DillyWorks Jobs Plugin - Frontend CSS
 */

/* CSS-Variablen für Backend-Einstellungen */
:root {
    --dillyworks-button-bg-color: #ffffff;
    --dillyworks-button-hover-color: #ff0000;
    --dillyworks-button-text-color: #ff0000;
    --dillyworks-border-color: #e0e0e0;
    --dillyworks-title-color: #000;
    --dillyworks-text-color: #000;
    --dillyworks-toggle-color: #ff0000;
}

/* Basis-Styles - Clean wie im Screenshot */
.dillyworks-jobs-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

.dillyworks-jobs-list {
    margin-bottom: 0;
    background: #fff;
}

/* Job-Item Styles - Genau wie im Screenshot */
.dillyworks-job-item {
    background: #fff;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid var(--dillyworks-border-color);
    transition: none;
}

.dillyworks-job-item:last-child {
    border-bottom: none;
}

.dillyworks-job-item.expanded {
    background: #fff;
}

/* Job-Header Styles - Genau wie im Screenshot */
.dillyworks-job-header {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: none;
    width: 100%;
    border-bottom: 0px solid var(--dillyworks-border-color);
}

.dillyworks-job-header:hover {
    background: #fff;
}

.dillyworks-job-item.expanded .dillyworks-job-header {
    background: #fff;
}

.dillyworks-job-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dillyworks-job-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--dillyworks-title-color);
    margin: 0px !important;
    line-height: 1.3;
}

.dillyworks-job-title .gender-indicator {
    font-weight: normal;
color: var(--dillyworks-title-color);
font-size: 0.75em;
}

.dillyworks-job-subtitle {
    font-size: 0.9em;
    color: var(--dillyworks-text-color);
    margin: 0;
    font-weight: normal;
}

.dillyworks-job-toggle {
    color: var(--dillyworks-toggle-color);
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dillyworks-job-toggle .toggle-arrow-svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.dillyworks-job-item.expanded .dillyworks-job-toggle .toggle-arrow-svg {
    transform: rotate(90deg);
}

/* Job-Content Styles - Genau wie im Screenshot */
.dillyworks-job-content {
    padding: 30px 0 30px 0;
    background: #fff;
}

.dillyworks-job-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--dillyworks-title-color);
}

.dillyworks-job-description h1,
.dillyworks-job-description h2,
.dillyworks-job-description h3,
.dillyworks-job-description h4,
.dillyworks-job-description h5,
.dillyworks-job-description h6 {
    color: var(--dillyworks-title-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

.dillyworks-job-description h3 {
    font-size: 1.1em;
    color: var(--dillyworks-title-color);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 15px;
}

.dillyworks-job-description ul,
.dillyworks-job-description ol {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.dillyworks-job-description li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.dillyworks-job-description li:before {
    content: "•";
    color: var(--dillyworks-toggle-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.dillyworks-job-description p {
    margin-bottom: 15px;
    color: var(--dillyworks-title-color);
}

/* Kontakt-Styles - Genau wie im Screenshot */
.dillyworks-job-contact {
    background: transparent;
    padding: 0;
    margin-top: 20px;
}

.dillyworks-job-contact h4 {
    margin: 0 0 15px 0;
    color: var(--dillyworks-title-color);
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
}

.dillyworks-job-contact p {
    margin: 0;
    font-weight: normal;
    color: var(--dillyworks-title-color);
    line-height: 1.2;
    padding-bottom: 5px;
}

.dillyworks-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.dillyworks-contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background-color: var(--dillyworks-button-bg-color);
    color: var(--dillyworks-button-text-color);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--dillyworks-button-text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.dillyworks-contact-btn:hover {
    background-color: var(--dillyworks-button-hover-color);
    border-color: var(--dillyworks-button-hover-color);
    color: white !important;
    text-decoration: none;
}

.dillyworks-btn-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Pagination Styles - Schönes Design */
.dillyworks-jobs-pagination {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--dillyworks-border-color);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.dillyworks-jobs-pagination:hover {
    background: transparent !important;
}

.dillyworks-jobs-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.dillyworks-jobs-pagination ul:hover {
    background: transparent !important;
}

.dillyworks-jobs-pagination li {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

.dillyworks-jobs-pagination li:hover {
    background: transparent !important;
}

.dillyworks-jobs-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background: var(--dillyworks-button-bg-color);
    color: var(--dillyworks-button-text-color);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--dillyworks-button-text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.dillyworks-jobs-pagination .page-numbers:hover,
.dillyworks-jobs-pagination .page-numbers.current {
    background: var(--dillyworks-button-hover-color);
    border-color: var(--dillyworks-button-hover-color);
    color: white;
    text-decoration: none;
}

.dillyworks-jobs-pagination .page-numbers.current {
    font-weight: bold;
}

.dillyworks-jobs-pagination .page-numbers.prev,
.dillyworks-jobs-pagination .page-numbers.next {
    padding: 10px 20px;
}

.dillyworks-jobs-load-more {
    text-align: center;
    margin-top: 30px;
}

.dillyworks-load-more-btn {
    background: var(--dillyworks-button-bg-color);
    color: var(--dillyworks-button-text-color);
    border: 1px solid var(--dillyworks-button-text-color);
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 4px;
    cursor: pointer;
}

.dillyworks-load-more-btn:hover {
    background: var(--dillyworks-button-hover-color);
    border-color: var(--dillyworks-button-hover-color);
    color: white;
}

.dillyworks-no-jobs {
    text-align: center;
    padding: 40px;
    color: var(--dillyworks-text-color);
    font-size: 1.1em;
}

/* Separate Page Mode - Identisch mit aufgeklappter Version */
.dillyworks-job-separate {
    background: #fff;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.dillyworks-job-separate .dillyworks-job-header {
    cursor: default;
    background: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dillyworks-job-separate .dillyworks-job-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dillyworks-job-separate .dillyworks-job-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--dillyworks-title-color);
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.dillyworks-job-separate .dillyworks-job-title .gender-indicator {
    font-weight: normal;
    color: var(--dillyworks-title-color);
    font-size: 0.75em;
}

.dillyworks-job-separate .dillyworks-job-subtitle {
    font-size: 0.9em;
    color: var(--dillyworks-text-color);
    margin: 0;
    font-weight: normal;
}

.dillyworks-job-separate .dillyworks-job-content {
    padding: 30px 0 30px 0;
    background: #fff;
}

.dillyworks-job-separate .dillyworks-job-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--dillyworks-title-color);
}

.dillyworks-job-separate .dillyworks-job-description h1,
.dillyworks-job-separate .dillyworks-job-description h2,
.dillyworks-job-separate .dillyworks-job-description h3,
.dillyworks-job-separate .dillyworks-job-description h4,
.dillyworks-job-separate .dillyworks-job-description h5,
.dillyworks-job-separate .dillyworks-job-description h6 {
    color: var(--dillyworks-title-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

.dillyworks-job-separate .dillyworks-job-description h3 {
    font-size: 1.1em;
    color: var(--dillyworks-title-color);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 15px;
}

.dillyworks-job-separate .dillyworks-job-description ul,
.dillyworks-job-separate .dillyworks-job-description ol {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.dillyworks-job-separate .dillyworks-job-description li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.dillyworks-job-separate .dillyworks-job-description li:before {
    content: "•";
    color: var(--dillyworks-toggle-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.dillyworks-job-separate .dillyworks-job-description p {
    margin-bottom: 15px;
    color: var(--dillyworks-title-color);
}

.dillyworks-job-separate .dillyworks-job-contact {
    background: transparent;
    padding: 0;
    margin-top: 20px;
}

.dillyworks-job-separate .dillyworks-job-contact h4 {
    margin: 0 0 15px 0;
    color: var(--dillyworks-title-color);
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
}

.dillyworks-job-separate .dillyworks-job-contact p {
    margin: 0;
    font-weight: normal;
    color: var(--dillyworks-title-color);
    line-height: 1.2;
    padding-bottom: 5px;
}

.dillyworks-job-separate .dillyworks-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.dillyworks-job-separate .dillyworks-contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background-color: var(--dillyworks-button-bg-color);
    color: var(--dillyworks-button-text-color);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--dillyworks-button-text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.dillyworks-job-separate .dillyworks-contact-btn:hover {
    background-color: var(--dillyworks-button-hover-color);
    border-color: var(--dillyworks-button-hover-color);
    color: white !important;
    text-decoration: none;
}
