.job-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.job-detail__back {
    margin-bottom: 20px;
}

.job-detail__back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a3350;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    padding: 8px 12px;
    border-radius: 4px;
}

.job-detail__back-link:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.job-detail__back-link svg {
    flex-shrink: 0;
}

.job-detail__error {
    padding: 20px;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c00;
}

.job-detail__header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1a3350;
}

.job-detail__title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.job-detail__subtitle {
    font-size: 1.25rem;
    color: #666;
}

.job-detail__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.job-detail__meta-item {
    display: block;
    font-size: 0.95rem;
}

.job-detail__meta-item strong {
    color: #333;
}

.job-detail__teaser {
    line-height: 1.5em;
    margin-bottom: 40px;
    border-radius: 4px;
    font-weight: bold;
}

.job-detail__description {
    line-height: 1.6em;
    margin-bottom: 40px;
}

.job-detail__description h2,
.job-detail__description h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.job-detail__description ul,
.job-detail__description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.job-detail__description p {
    margin-bottom: 15px;
}

.job-detail__texts {
    margin-bottom: 40px;
}

.job-detail__text-block {
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
}

.job-detail__text-block[open] {
    border-color: #1a3350;
}

.job-detail__text-summary {
    padding: 1rem;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    border-radius: 4px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.2s;
}

.job-detail__text-summary:hover {
    background-color: #f8f9fa;
}

.job-detail__text-summary::-webkit-details-marker {
    display: none;
}

.job-detail__text-toggle::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #1a3350;
    transition: transform 0.2s;
}

.job-detail__text-block[open] .job-detail__text-toggle::after {
    content: '−';
}

.job-detail__text-content {
    padding: 0 1rem 1rem 1rem;
    line-height: 1.6;
    animation: slideDown 0.2s ease-out;
}

.job-detail__text-intro {
    padding: 0 20px 20px 20px;
    line-height: 1.6;
    font-weight: bold;
}

.job-detail__text-body {
    padding: 0;
    line-height: 1.6;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-detail__text-content ul,
.job-detail__text-content ol {
    margin-left: 0;
    margin-bottom: 0.5rem;
}

.job-detail__text-content li {
    margin-bottom: 8px;
}

.job-detail__company,
.job-detail__contacts {
    margin-top: 40px;
    border-radius: 4px;
}

.job-detail__company h2,
.job-detail__contacts h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.job-detail__company-description {
    line-height: 1.6;
}

.job-detail__contacts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.job-detail__contact {
}

.job-detail__contact strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.job-detail__contact-title {
    color: #666;
    margin-bottom: 10px;
}

.job-detail__contact p {
    margin: 5px 0;
}

.job-detail__contact a {
    color: #1a3350;
    text-decoration: none;
}

.job-detail__contact a:hover {
    text-decoration: underline;
}

.job-detail__actions {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
}

.job-detail__apply-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #1a3350;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.2s;
}

.job-detail__apply-button:hover {
    background-color: #1a3350;
    text-decoration: none;
}

/* Contact Info (wenn kein Bewerbungsformular) */
.job-detail__contact-info {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.job-detail__contact-info h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: #1a3350;
}

.job-detail__contact-info p {
    margin: 8px 0;
    color: #495057;
}

.job-detail__contact-info .contact-details {
    background: white;
    padding: 16px;
    border-radius: 4px;
    margin: 16px 0;
}

.job-detail__contact-info .contact-details strong {
    color: #1a3350;
}

.job-detail__contact-info .company-name {
    font-weight: 600;
    color: #1a3350;
    margin-top: 16px;
}
