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

html { scrollbar-gutter: stable; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  background: #eef3fb;
  color: #0f1e36;
  padding: 40px 16px;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.container.center { text-align: center; }

h1 { font-size: 1.8em; color: #1565c0; margin-bottom: 6px; }
h2 { font-size: 1.4em; color: #1565c0; margin-bottom: 20px; }
h3 { font-size: 1.1em; margin-bottom: 8px; }

.subtitle { color: #45566f; margin-bottom: 30px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { font-weight: normal; color: #7a8aa3; font-size: 0.9em; }
.required { color: #c0392b; }

input[type="text"],
input[type="email"],
input[type="file"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c4d2e8;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
}

textarea { resize: vertical; }

input[type="file"] { padding: 8px; background: #f5f8fd; cursor: pointer; }

button, .btn {
  display: inline-block;
  background: #1565c0;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 10px;
}

button:not(:disabled):hover, .btn:hover { background: #0d47a1; }

/* Language switcher */
.lang-row { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 20px; }
.lang-select {
  background: #eef3fb; color: #45566f;
  border: 1px solid #c4d2e8; padding: 4px 10px;
  border-radius: 4px; font-size: 0.85em; font-weight: 600;
  cursor: pointer; margin: 0;
}
.lang-select:focus { outline: 2px solid #1565c0; outline-offset: 1px; }

/* Info section */
.info-section { margin: 28px 0; }
.info-section h2 { color: #1565c0; margin-bottom: 20px; font-size: 1.2em; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { background: #f5f8fd; border-radius: 8px; padding: 18px; }
.info-icon { font-size: 1.8em; margin-bottom: 10px; }
/* min-height = 2 Zeilen, damit 1- und 2-zeilige Titel gleich hoch sind → Fließtext fluchtet über alle Karten */
.info-card h3 { font-size: 0.95em; color: #1565c0; margin-bottom: 8px; line-height: 1.3; min-height: 2.6em; }
.info-card p { font-size: 0.85em; color: #45566f; line-height: 1.6; }

/* Hint box */
.hint-box {
  background: #fdf1dc;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 28px;
  font-size: 0.95em;
  color: #45566f;
  line-height: 1.5;
}

/* Tabs */
.tab-row { display: flex; gap: 8px; margin-bottom: 10px; }
.tab {
  background: #eef3fb;
  color: #45566f;
  border: 1px solid #c4d2e8;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
}
.tab.active { background: #1565c0; color: #fff; border-color: #1565c0; }

/* Submit hint */
.submit-hint { font-size: 0.85em; color: #7a8aa3; margin-top: 8px; }

button:disabled { background: #c4d2e8; cursor: not-allowed; }

/* Loading */
.loading { text-align: center; padding: 40px 0; }
.spinner {
  width: 48px; height: 48px;
  border: 5px solid #e7f0fc;
  border-top-color: #1565c0;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Job cards */
.job-list { margin-bottom: 30px; }
.job-card {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid #dce5f2;
  border-left: 4px solid #1565c0;
  border-radius: 6px;
  margin-bottom: 12px;
}

.job-score {
  font-size: 1.4em;
  font-weight: bold;
  color: #1565c0;
  min-width: 52px;
  text-align: center;
  padding-top: 2px;
}

.job-title {
  font-weight: 600;
  color: #1565c0;
  text-decoration: none;
  font-size: 1.05em;
}
.job-title:hover { text-decoration: underline; }
.job-meta { color: #45566f; font-size: 0.9em; margin-top: 4px; }
.job-reason-wrap { margin-top: 8px; }
.kw-label { display: block; font-size: 0.78em; color: #7a8aa3; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.kw-chip { display: inline-block; background: #e7f0fc; color: #0d47a1; padding: 2px 9px; border-radius: 12px; font-size: 0.8em; margin: 2px 3px 2px 0; }
.kw-chip--match { background: #0d47a1; color: #fff; font-weight: 600; }

/* Email box */
.email-box {
  background: #e7f0fc;
  border-radius: 8px;
  padding: 24px;
  margin-top: 10px;
}
.email-box p { color: #45566f; margin-bottom: 14px; }
.email-row { display: flex; gap: 10px; }
.email-row input { flex: 1; margin: 0; }
.email-row button { margin: 0; white-space: nowrap; }

/* Danke */
.check {
  font-size: 3em;
  color: #1a8a54;
  margin-bottom: 16px;
}

/* Mobile */
@media (max-width: 600px) {
  body { padding: 12px 8px; }
  .container { padding: 24px 20px; border-radius: 8px; }
  h1 { font-size: 1.5em; }
  h2 { font-size: 1.2em; }
  .email-row { flex-direction: column; }
  .email-row button { width: 100%; }
  .tab-row { flex-wrap: wrap; }
  .job-card { flex-direction: column; gap: 8px; }
  .job-score { min-width: unset; text-align: left; font-size: 1.2em; }
}
