/* Jobbörse ZAss - Farben und Schrift von www.salzburger-fortbildungsakademie.at übernommen */
:root {
  --blue: #0097db;
  --blue-dark: #007bc2;
  --lime: #bdcd00;
  --lime-soft: #f4f7cc;
  --text: #333;
  --muted: #666;
  --line: #d9d9d9;
  --bg: #f2f2f2;
  --card: #fff;
  --danger: #c0392b;
  --ok: #3c8d4f;
  --radius: 12px;
  --font: Candara, "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.5; }
body.embed { background: transparent; }
a { color: var(--blue-dark); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
body.admin .wrap { max-width: 980px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Kopf */
.site-header { background: #fff; padding: 14px 0; }
.logo { display: block; max-height: 78px; max-width: 100%; height: auto; }
.titleband { background: var(--blue); color: #fff; padding: 14px 0 16px; }
.titleband .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.tb-big { font-size: 32px; font-weight: 700; line-height: 1.1; }
.tb-small { font-size: 19px; color: #fff; border-left: 4px solid var(--lime); padding-left: 12px; }
main.wrap { padding-top: 22px; padding-bottom: 32px; }
body.embed main.wrap { padding-top: 8px; padding-bottom: 8px; }

h1 { margin: 0 0 12px; color: var(--blue-dark); font-size: 26px; font-weight: 700; line-height: 1.2; }
h2 { margin: 24px 0 10px; color: var(--blue-dark); font-size: 20px; font-weight: 700; }
h3 { margin: 20px 0 6px; font-size: 18px; color: var(--text); }
.small { font-size: 14px; color: var(--muted); }
.hint { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* Karten */
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); padding: 20px 18px; margin-bottom: 16px; }
.card.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
@media (min-width: 600px) { .card { padding: 26px 30px; } }

/* Formularfelder */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 17px; /* >=16px verhindert Auto-Zoom auf iOS */
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text);
}
textarea { resize: vertical; }
input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(0, 151, 219, .45); outline-offset: 2px;
}
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } }
label.check { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-weight: 400; cursor: pointer; }
label.check input { width: 22px; height: 22px; flex: none; accent-color: var(--blue); }

/* Buttons */
.btn { display: inline-block; width: 100%; padding: 14px 20px; border: 0; border-radius: 8px; background: var(--blue-dark); color: #fff; font: inherit; font-size: 18px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: #00669f; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { width: auto; padding: 10px 18px; font-size: 16px; }
.btn-ghost { background: transparent; border: 2px solid var(--blue-dark); color: var(--blue-dark); padding: 12px 18px; }
.btn-small.btn-ghost { padding: 8px 16px; }
.btn-ghost:hover { background: #e6f4fb; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a93226; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-dark); text-decoration: underline; cursor: pointer; }
form .btn + .btn { margin-top: 10px; }

.error { background: #fdecea; color: var(--danger); border-left: 4px solid var(--danger); padding: 12px 14px; border-radius: 6px; margin: 12px 0; }
.notice { background: #e6f4fb; border-left: 4px solid var(--blue); padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; }
.empty { background: var(--lime-soft); border-left: 4px solid var(--lime); padding: 14px 16px; border-radius: 6px; margin: 8px 0; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; vertical-align: middle; }
.badge-online { background: #dff0e3; color: #2a6a3b; }
.badge-abgelaufen { background: #fdf0d2; color: #8a5a00; }
.badge-offline { background: #e8e8e8; color: #555; }
.badge-cat { background: #e6f4fb; color: var(--blue-dark); }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding: 18px 0 28px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }

/* Ausgabe: Kategorie-Reiter + Filter */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat-tab { flex: 1 1 220px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 2px solid var(--line); color: var(--text); font-weight: 700; text-align: center; text-decoration: none; }
.cat-tab.active { background: var(--lime); border-color: var(--lime); }
.cat-tab .count { display: inline-block; min-width: 24px; margin-left: 6px; padding: 0 7px; border-radius: 12px; background: rgba(0, 0, 0, .1); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.filters select { flex: 1 1 200px; width: auto; }
.filters .reset { font-size: 15px; }

/* Ausgabe: Anzeigenliste (Karte) */
.job { margin-bottom: 14px; background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); overflow: hidden; }
.job-head { margin: 0; padding: 10px 18px; background: var(--blue); color: #fff; font-size: 19px; border-left: 6px solid var(--lime); }
.job-body { padding: 14px 18px 16px; }
.job-title { margin: 0 0 8px; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tags li { padding: 2px 12px; border-radius: 14px; background: var(--lime-soft); font-size: 15px; }
.job-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.posted { margin: 0; font-size: 14px; color: var(--muted); }

/* Ausgabe: Detailseite */
.crumbs { margin-bottom: 12px; font-size: 15px; color: var(--muted); }
.detail h1 { margin-bottom: 2px; }
.jobtitle { margin: 12px 0 14px; color: var(--text); font-size: 21px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 16px; padding: 12px 16px; background: var(--lime-soft); border-radius: 8px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.detail ul { margin: 4px 0 8px; padding-left: 22px; }
.detail li { margin: 3px 0; }
.contact { margin-top: 24px; padding: 16px 18px; border: 2px solid var(--blue); border-radius: 10px; }
.contact h3 { margin-top: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .btn { width: auto; flex: 1 1 220px; }
.postal { margin: 14px 0 0; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 22px; }

/* Verlängern-Seite */
body.extend .card .btn { margin-top: 10px; }

/* Admin */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 10; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: #2f3b47; color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.toast-error { background: var(--danger); }
.toast[hidden] { display: none; }

.admin-nav { display: flex; gap: 6px; margin-bottom: 18px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
.tab { flex: 1; padding: 12px 6px; border: 2px solid var(--blue); border-radius: 8px; background: #fff; color: var(--blue-dark); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.tab.active { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { padding: 7px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.chip.active { border-color: var(--lime); background: var(--lime); font-weight: 700; }

.card.ad { border-left: 6px solid var(--line); padding-top: 16px; padding-bottom: 16px; }
.card.ad.status-online { border-left-color: var(--ok); }
.card.ad.status-abgelaufen { border-left-color: #e0a100; }
.ad-top { display: flex; gap: 8px; margin-bottom: 6px; }
.ad-title { display: block; font-size: 19px; }
.stats { margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); border-top: 5px solid var(--lime); }
.tile strong { display: block; font-size: 32px; line-height: 1.1; color: var(--blue-dark); }
.tile span { font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Druck */
@media print {
  body { background: #fff; font-size: 12pt; }
  .titleband, .site-footer, .detail-actions, .crumbs, .contact-actions { display: none; }
  .card, .job { box-shadow: none; border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
