/* Career-Site Styles — sauberes, professionelles Design */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #111827;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-primary, #0369a1); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--brand-primary, #0369a1); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; padding: 8px 16px; background: #fff;
  color: var(--brand-primary, #0369a1); border: 2px solid var(--brand-primary, #0369a1); z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; color: #111827; }
.logo:hover { text-decoration: none; }
.logo img { height: 32px; }
.logo-text { font-size: 18px; font-weight: 700; }
.site-nav a { color: #4b5563; font-size: 14px; }

/* Main */
.site-main { min-height: calc(100vh - 64px - 96px); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid #e5e7eb; margin-top: 64px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 14px; color: #6b7280;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: #6b7280; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-primary, #0ea5e9), #0369a1);
  color: #fff;
  padding: 80px 0 64px;
}
.hero h1 { margin: 0 0 12px; font-size: 40px; line-height: 1.2; font-weight: 800; }
.hero-tagline { font-size: 18px; opacity: 0.9; margin: 0; max-width: 640px; }

/* About */
.about { padding: 48px 0; background: #fff; border-bottom: 1px solid #e5e7eb; }
.about p { margin: 0; max-width: 720px; font-size: 17px; color: #374151; }

/* Jobs */
.jobs { padding: 64px 0; }
.jobs h2 { font-size: 24px; margin: 0 0 24px; }
.empty {
  background: #fff; border: 1px dashed #d1d5db; border-radius: 12px;
  padding: 40px; text-align: center; color: #6b7280;
}
.job-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.job-card:hover {
  border-color: var(--brand-primary, #0ea5e9);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
}
.job-card-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; color: inherit;
}
.job-card-link:hover { text-decoration: none; }
.job-card-main h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #111827; }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #f3f4f6; color: #4b5563; font-size: 13px; font-weight: 500;
}
.job-card-action { color: var(--brand-primary, #0369a1); font-weight: 600; white-space: nowrap; margin-left: 16px; }

.muted { color: #6b7280; font-size: 14px; margin-bottom: 24px; }
.hint {
  font-size: 14px; color: #4b5563;
  background: #fef3c7; border-left: 3px solid #f59e0b;
  padding: 10px 14px; border-radius: 4px; margin-bottom: 16px;
}
.form-error {
  background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b;
  padding: 16px; border-radius: 8px; margin-bottom: 24px;
}
.form-error p { margin: 8px 0 0; }
.form-error small { color: #7f1d1d; }
.thanks-icon-info { background: #dbeafe !important; color: #1e3a8a !important; }

/* Job Detail */
.job-detail { padding: 48px 0 96px; background: #fff; }
.back-link { font-size: 14px; color: #6b7280; }
.job-detail h1 { margin: 16px 0 16px; font-size: 32px; line-height: 1.2; }
.job-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.job-cta-top, .job-cta-bottom {
  display: flex; gap: 12px; margin: 24px 0 32px;
}
.job-cta-bottom { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e5e7eb; justify-content: center; }

.job-section { margin: 32px 0; }
.job-section h2 { font-size: 20px; margin: 0 0 12px; }

/* Prose (Rich-Text Inhalte) */
.prose { line-height: 1.7; color: #374151; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose strong { color: #111827; }
.prose h3, .prose h4 { color: #111827; margin: 18px 0 8px; }
.prose a { color: var(--brand-primary, #0ea5e9); }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 500; cursor: pointer; text-align: center;
  border: 1px solid transparent; transition: all 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--brand-primary, #0ea5e9); color: #fff;
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3); }
.btn-secondary {
  background: #fff; color: #374151; border-color: #d1d5db;
}
.btn-secondary:hover { background: #f9fafb; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* Apply Page */
.apply-page { padding: 48px 0 96px; background: #fff; }
.apply-page h1 { margin: 16px 0 16px; font-size: 28px; }
.apply-intro { color: #6b7280; margin-bottom: 32px; }

.apply-form { display: flex; flex-direction: column; gap: 24px; }
fieldset {
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 24px; margin: 0;
}
legend { padding: 0 8px; font-weight: 600; color: #111827; }
.form-grid {
  display: grid; gap: 16px; grid-template-columns: 1fr 1fr;
}
.form-grid .form-row.full { grid-column: 1 / -1; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.form-row:first-child { margin-top: 0; }
.form-row label { font-size: 14px; font-weight: 500; color: #374151; }
.form-row small { color: #6b7280; font-size: 12px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 15px; background: #fff; font-family: inherit;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--brand-primary, #0ea5e9); outline-offset: -1px; border-color: transparent;
}
.form-row input[type="file"] {
  padding: 6px 0; font-size: 14px;
}
.form-row textarea { resize: vertical; min-height: 80px; }

.required-marker { color: #dc2626; }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #374151; }
.checkbox input { margin-top: 4px; }

.hp-field {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.form-actions { display: flex; justify-content: flex-end; padding-top: 12px; }

/* Thanks Page */
.thanks-page { padding: 80px 0; background: #fff; min-height: 60vh; }
.thanks-card { text-align: center; max-width: 540px; margin: 0 auto; }
.thanks-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: #d1fae5; color: #065f46;
  font-size: 36px; font-weight: 700; margin-bottom: 24px;
}
.thanks-card h1 { margin: 0 0 16px; font-size: 28px; }
.thanks-card p { color: #4b5563; margin-bottom: 16px; }

/* Prose Page (Datenschutz, Impressum, 404) */
.prose-page { padding: 48px 0 96px; background: #fff; }
.prose-page h1 { font-size: 28px; margin: 0 0 24px; }
.prose-page h2 { font-size: 18px; margin: 32px 0 12px; }
.prose-page p, .prose-page ul { color: #374151; line-height: 1.7; }
.prose-page ul { padding-left: 24px; }

/* Mobile */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 30px; }
  .job-card-link { flex-direction: column; align-items: flex-start; gap: 12px; }
  .job-card-action { margin-left: 0; }
}
