/* ═══════════════════════════════════════════════════════════
   Styles für den Bereich "Stellenangebote":
   Übersichtsseite (bewerbung.html) und die einzelnen
   Stellenausschreibungen. Ergänzt style.css (Navigation).
   ═══════════════════════════════════════════════════════════ */

/* ─── DESIGN-TOKENS (an index.html angelehnt) ─────────────── */
:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --purple-50:  #faf5ff;
  --purple-100: #f3e8ff;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --teal-500: #14b8a6;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);

  --surface: var(--white);
  --page-bg: var(--gray-50);
  --accent-strong-text: var(--blue-900);
  --link-color: var(--blue-600);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gray-50:  #161d2b;
    --gray-100: #1b2334;
    --gray-200: #263043;
    --gray-300: #33405a;
    --gray-500: #9aa5b1;
    --gray-600: #b8c2cf;
    --gray-700: #cbd5e1;
    --gray-800: #e2e6ea;
    --gray-900: #f5f7fa;
    --blue-50:  #16233a;
    --blue-100: #1c2b45;
    --blue-200: #2c3f5e;
    --blue-700: #8fbcf2;
    --purple-50:  #241a35;
    --purple-100: #2c2140;
    --surface: #171e2b;
    --page-bg: #10151f;
    --accent-strong-text: #bfdbfe;
    --link-color: #6fa8ea;
  }
}

:root[data-theme="dark"] {
  --gray-50:  #161d2b;
  --gray-100: #1b2334;
  --gray-200: #263043;
  --gray-300: #33405a;
  --gray-500: #9aa5b1;
  --gray-600: #b8c2cf;
  --gray-700: #cbd5e1;
  --gray-800: #e2e6ea;
  --gray-900: #f5f7fa;
  --blue-50:  #16233a;
  --blue-100: #1c2b45;
  --blue-200: #2c3f5e;
  --blue-700: #8fbcf2;
  --purple-50:  #241a35;
  --purple-100: #2c2140;
  --surface: #171e2b;
  --page-bg: #10151f;
  --accent-strong-text: #bfdbfe;
  --link-color: #6fa8ea;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide { max-width: 1080px; }

a { color: var(--link-color); }

/* ─── ZURÜCK-LINK ─────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 28px 0 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
}
.back-link:hover { color: var(--link-color); }

/* ─── SEITENKOPF / HERO ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
  color: #fff;
  padding: 56px 0 64px;
  margin-top: 20px;
}
.page-hero .wrap { padding-top: 0; }
.page-hero .kicker { color: rgba(255,255,255,.85); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  margin-bottom: 18px;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.page-hero .lead {
  font-size: 1.1rem;
  max-width: 46rem;
  color: rgba(255,255,255,.92);
}

/* ─── META-CHIPS ──────────────────────────────────────────── */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
}

/* ─── DOWNLOAD-/CTA-BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-outline {
  background: transparent;
  color: var(--link-color);
  border-color: var(--gray-300);
}
.btn-outline:hover { border-color: var(--link-color); background: var(--blue-50); }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { transform: translateY(-1px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ─── INHALTS-KARTE der Ausschreibung ─────────────────────── */
.content {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  margin: -36px auto 48px;
  position: relative;
}
.content > p { color: var(--gray-700); }
.content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
}
.content h2:first-of-type { margin-top: 8px; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative;
  padding: 7px 0 7px 30px;
  color: var(--gray-700);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--blue-500);
}

/* ─── HINWEIS-/CALLOUT-BOX ────────────────────────────────── */
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 30px 0 0;
  color: var(--gray-700);
}
.callout .ic { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }

/* ─── BEWERBUNGS-ABSCHNITT ────────────────────────────────── */
.apply {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 36px;
}
.apply h2 { border: none; margin-top: 0; }
.apply p { color: var(--gray-700); }
.apply .mail-row { margin-top: 18px; }

/* ─── ÜBERSICHTSSEITE (bewerbung.html) ────────────────────── */
.section { padding: 56px 0; }
.section-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--gray-900);
  margin: 0 0 16px;
}
.prose p { color: var(--gray-700); margin: 0 0 16px; max-width: 46rem; }
.prose p:last-child { margin-bottom: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
}
.info-card .ic { font-size: 1.7rem; }
.info-card h3 { font-size: 1.05rem; color: var(--gray-900); margin: 10px 0 6px; }
.info-card p { color: var(--gray-600); font-size: .95rem; margin: 0; }

/* Stellen-Karten */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.job-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.job-card .tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  margin-bottom: 14px;
}
.job-card h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--gray-900);
  margin: 0 0 10px;
}
.job-card p { color: var(--gray-600); font-size: .92rem; margin: 0 0 20px; }
.job-card .job-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.job-card .job-meta li {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 999px;
  padding: 4px 10px;
}
.job-card .actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.job-card .actions a { font-size: .88rem; font-weight: 600; text-decoration: none; }
.job-card .view-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: var(--blue-600);
  padding: 9px 16px;
  border-radius: 8px;
}
.job-card .view-link:hover { background: var(--blue-700); }
.job-card .pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link-color);
}
.job-card .pdf-link:hover { text-decoration: underline; }

/* ─── DATENSCHUTZ FÜR BEWERBUNGEN ─────────────────────────── */
.ds-details {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 4px 26px;
}
.ds-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ds-details > summary::-webkit-details-marker { display: none; }
.ds-details > summary::before {
  content: "🔒";
  font-size: 1.1rem;
}
.ds-details > summary::after {
  content: "›";
  margin-left: auto;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gray-500);
  transform: rotate(90deg);
  transition: transform .2s;
}
.ds-details[open] > summary::after { transform: rotate(-90deg); }
.ds-content {
  padding: 4px 0 24px;
  border-top: 1px solid var(--gray-200);
}
.ds-content h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 20px 0 6px;
}
.ds-content p {
  color: var(--gray-700);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}
.ds-hint {
  margin-top: 18px;
  font-size: .9rem;
  color: var(--gray-600);
}

/* ─── FOOTER (schlank, an index.html angelehnt) ──────────── */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 40px 24px;
  font-size: .9rem;
}
.site-footer a { color: #fff; }
.site-footer .foot-logo { font-weight: 700; font-size: 1.05rem; color: #fff; margin-bottom: 10px; }

@media (max-width: 640px) {
  .content { padding: 26px 20px; border-radius: var(--radius); }
}

/* ─── DRUCK / PDF ─────────────────────────────────────────── */
.print-header { display: none; }

@media print {
  @page { margin: 16mm 15mm; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #111827; font-size: 11pt; line-height: 1.45; }

  nav, .back-link, .hero-actions, .site-footer,
  .no-print { display: none !important; }

  .page-hero {
    background: none !important;
    color: #111827;
    padding: 0 0 8px;
    margin: 0;
  }
  .page-hero h1 { font-size: 18pt; color: #111827; }
  .page-hero .lead { color: #374151; font-size: 11.5pt; }
  .eyebrow {
    background: none;
    color: #2563eb;
    padding: 0;
    margin-bottom: 6px;
    font-size: 8.5pt;
  }
  .chips { gap: 6px; }
  .chips li { background: #eff6ff; color: #1d4ed8; }

  .content {
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 0;
    background: #fff;
  }
  .content h2 { font-size: 13pt; color: #111827; }
  .feature-list li { padding-top: 4px; padding-bottom: 4px; }
  .feature-list li::before { top: 11px; }

  .callout { background: #faf5ff; border-color: #e9d5ff; break-inside: avoid; }
  .apply { background: #eff6ff; border-color: #bfdbfe; break-inside: avoid; }

  h2, h3 { break-after: avoid; }
  li, .callout, .apply { break-inside: avoid; }

  .print-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1.5px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 18px;
  }
  .print-header img { height: 40px; width: auto; }
  .print-header .ph-name { font-weight: 700; color: #1d4ed8; font-size: 12pt; }
  .print-header .ph-sub { color: #6b7280; font-size: 9pt; }
}
