/* dvrecruit — Layout auf Basis der Theme-Variablen aus der Konfiguration [CFG-2, UI-8] */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--dvr-font);
  color: var(--dvr-text);
  background: var(--dvr-bg);
  line-height: 1.55;
}

.site-header {
  background: var(--dvr-surface);
  border-bottom: 3px solid var(--dvr-primary);
  padding: 0.9rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 52rem;
  margin: 0 auto;
  text-decoration: none;
  color: var(--dvr-text);
}

.brand-logo { max-height: 3rem; width: auto; }
.brand-title { font-size: 1.15rem; font-weight: 600; }

main {
  max-width: 52rem;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.card {
  background: var(--dvr-surface);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card.narrow { max-width: 26rem; margin-left: auto; margin-right: auto; }

main h1 { font-size: 1.6rem; margin: 0 0 0.75rem; color: var(--dvr-primary); }
main h2 { font-size: 1.2rem; margin: 1.25rem 0 0.5rem; color: var(--dvr-primary); }

main a { color: var(--dvr-primary); }
main a:hover { color: var(--dvr-accent); }

:focus-visible {
  outline: 3px solid var(--dvr-accent);
  outline-offset: 2px;
}

/* Stellenliste */
.job-list { list-style: none; margin: 0; padding: 0; }

.job-card {
  display: block;
  background: var(--dvr-surface);
  border-radius: 8px;
  border-left: 5px solid var(--dvr-primary);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--dvr-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.job-card:hover { border-left-color: var(--dvr-accent); }
.job-card h2 { margin: 0 0 0.25rem; }
.job-meta { color: #666; margin: 0 0 0.5rem; font-size: 0.95rem; }

.job-image { max-width: 100%; height: auto; border-radius: 4px; }
.job-image-preview { max-width: 20rem; height: auto; border-radius: 4px; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--dvr-primary);
  color: var(--dvr-primary-contrast);
  border: 0;
  border-radius: 6px;
  padding: 0.65rem 1.4rem;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--dvr-accent); color: var(--dvr-primary-contrast); }
.button.secondary { background: #777; }
.button.danger { background: #b3261e; }

button.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--dvr-primary);
  text-decoration: underline;
  cursor: pointer;
}

button.linklike.danger { color: #b3261e; }

/* Formulare */
.field { margin: 0 0 1rem; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="number"],
.field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font: inherit;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  color: #222;
}

.field textarea { resize: vertical; }

.field.consent label { display: flex; gap: 0.6rem; font-weight: 400; align-items: flex-start; }
.field.consent input { margin-top: 0.3rem; }

.hint { color: #666; font-size: 0.9rem; }
.apply-note { color: #555; font-size: 0.95rem; }

.form-errors {
  border: 1px solid #b3261e;
  border-left-width: 5px;
  border-radius: 6px;
  background: #fdeceb;
  color: #7a1a15;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.form-errors ul { margin: 0; padding-left: 1.2rem; }
.file-warning { display: block; color: #b3261e; margin-top: 0.3rem; }

/* Honeypot: visuell versteckt [SPAM-2] */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Admin */
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-bar h1 { margin: 0; }
.admin-nav { display: flex; gap: 0.75rem; align-items: center; }

.table-wrap { overflow-x: auto; }

.admin-table { border-collapse: collapse; width: 100%; }

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.admin-table .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.admin-table .actions form { display: inline; }

fieldset.field { border: 1px solid #ccc; border-radius: 6px; }
fieldset.field label { display: inline-flex; gap: 0.35rem; font-weight: 400; margin-right: 1.25rem; }

/* Fußzeile */
.site-footer {
  max-width: 52rem;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #666;
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
}

.site-footer a { color: #666; }

@media (max-width: 480px) {
  main { margin-top: 1rem; }
  .card { padding: 1rem; }
  main h1 { font-size: 1.35rem; }
}


/* --- Anpassung Karl Schobloch GmbH -----------------------------------------
   Überschriften wie auf der Hauptseite: dunkel und ohne Fettung; Grün bleibt
   Buttons, Links und Akzenten vorbehalten (vgl. assets/styles.css der Website). */
main h1, main h2 {
  color: var(--dvr-text);
  font-weight: normal;
}

.job-card h2 {
  font-weight: 700;
}

/* Mit Original-Header: etwas Luft unter der Navigation */
main { margin-top: 6vh; }

/* Abstandshalter unter der Stellenliste */
.list-end-spacer { min-height: 15vh; }
