/* Jobhack – neutrales Standard-Design, erbt Schrift und Farben vom Theme. */
.jobhack-careers, .jobhack-list, .jobhack-form-box, .jobhack-facts {
	--jh-accent: var(--wp--preset--color--primary, #2563eb);
	--jh-border: color-mix(in srgb, currentColor 18%, transparent);
	--jh-radius: 10px;
	--jh-error: #c62828;
	--jh-ok: #2e7d32;
}
.jobhack-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.jobhack-filters input[type=search] { flex: 1 1 14rem; }
.jobhack-filters input, .jobhack-filters select, .jobhack-filters button,
.jobhack-field input[type=text], .jobhack-field input[type=email], .jobhack-field input[type=tel],
.jobhack-field input[type=url], .jobhack-field select, .jobhack-field textarea {
	font: inherit; padding: .6rem .75rem; border: 1px solid var(--jh-border); border-radius: 8px;
	background: transparent; color: inherit; box-sizing: border-box;
}
.jobhack-field input[type=text], .jobhack-field input[type=email], .jobhack-field input[type=tel],
.jobhack-field input[type=url], .jobhack-field select, .jobhack-field textarea { width: 100%; }
.jobhack-field input:focus, .jobhack-field select:focus, .jobhack-field textarea:focus,
.jobhack-filters input:focus, .jobhack-filters select:focus { outline: 2px solid var(--jh-accent); outline-offset: 1px; }

.jobhack-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.jobhack-card { border: 1px solid var(--jh-border); border-radius: var(--jh-radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.jobhack-card h3 { margin: 0; font-size: 1.15rem; }
.jobhack-card h3 a { text-decoration: none; color: inherit; }
.jobhack-card h3 a:hover { color: var(--jh-accent); }
.jobhack-card p { margin: 0; opacity: .8; flex: 1; }
.jobhack-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.jobhack-chips li { font-size: .8rem; padding: .15rem .6rem; border-radius: 99px; background: color-mix(in srgb, var(--jh-accent) 12%, transparent); }

.jobhack-button, .jobhack-filters button {
	display: inline-block; cursor: pointer; text-decoration: none; text-align: center; font: inherit; font-weight: 600;
	padding: .65rem 1.2rem; border-radius: 8px; border: 0; background: var(--jh-accent); color: #fff;
}
.jobhack-button:hover, .jobhack-filters button:hover { filter: brightness(1.1); }
.jobhack-button[disabled] { opacity: .6; cursor: wait; }

.jobhack-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin: 0 0 1.5rem; padding: 1rem; border: 1px solid var(--jh-border); border-radius: var(--jh-radius); }
.jobhack-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; opacity: .65; }
.jobhack-facts dd { margin: 0; font-weight: 600; }
.jobhack-closed { padding: .75rem 1rem; border-radius: 8px; background: color-mix(in srgb, var(--jh-error) 12%, transparent); }

.jobhack-form-box { margin: 1.5rem 0; }
.jobhack-field { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .3rem; }
.jobhack-field label { font-weight: 600; }
.jobhack-field label.jobhack-check { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; }
.jobhack-field small { opacity: .65; }
.jobhack-error { color: var(--jh-error); font-size: .875rem; }
.jobhack-notice { padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1rem; }
.jobhack-notice.is-success { background: color-mix(in srgb, var(--jh-ok) 14%, transparent); }
.jobhack-notice.is-error { background: color-mix(in srgb, var(--jh-error) 12%, transparent); }
.jobhack-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.jobhack-pagination ul { list-style: none; display: flex; gap: .35rem; padding: 0; margin: 1.5rem 0 0; flex-wrap: wrap; }
.jobhack-pagination a, .jobhack-pagination span { display: block; padding: .35rem .75rem; border: 1px solid var(--jh-border); border-radius: 6px; text-decoration: none; }
.jobhack-pagination .current { background: var(--jh-accent); color: #fff; border-color: transparent; }

/* ---- Karriereseite (v3) ---- */
.jobhack-careers{--jh-cols:2}
.jobhack-careers.is-loading .jobhack-results-wrap{opacity:.55;transition:opacity .15s}
.jobhack-toolbar{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:0 0 1.25rem}
.jobhack-toolbar input[type=search]{flex:1 1 14rem;font:inherit;padding:.6rem .75rem;border:1px solid var(--jh-border);border-radius:8px;background:transparent;color:inherit}
.jobhack-toolbar select{font:inherit;padding:.55rem .7rem;border:1px solid var(--jh-border);border-radius:8px;background:transparent;color:inherit}
.jobhack-summary{opacity:.7;font-size:.9rem;margin-left:auto}
.jobhack-toggle{display:inline-flex;border:1px solid var(--jh-border);border-radius:8px;overflow:hidden}
.jobhack-toggle button{font:inherit;background:transparent;color:inherit;border:0;padding:.5rem .8rem;cursor:pointer}
.jobhack-toggle button[aria-pressed=true]{background:var(--jh-accent);color:#fff}
.jobhack-layout{display:block}
.jobhack-layout.has-sidebar{display:grid;grid-template-columns:230px 1fr;gap:1.75rem;align-items:start}
@media (max-width:780px){.jobhack-layout.has-sidebar{grid-template-columns:1fr}}
.jobhack-facet{border:0;padding:0;margin:0 0 1.25rem;min-width:0}
.jobhack-facet legend{font-weight:700;margin-bottom:.4rem;padding:0}
.jobhack-facet .jobhack-check{display:flex;gap:.5rem;align-items:center;padding:.15rem 0;cursor:pointer}
.jobhack-facet .jobhack-check.is-empty{opacity:.45}
.jobhack-count{margin-left:auto;font-style:normal;font-size:.8rem;opacity:.65}
.jobhack-results{list-style:none;margin:0;padding:0;display:grid;gap:1rem}
.jobhack-results.is-grid{grid-template-columns:repeat(var(--jh-cols),minmax(0,1fr))}
@media (max-width:680px){.jobhack-results.is-grid{grid-template-columns:1fr}}
.jobhack-back{margin:0 0 1rem}

/* ---- Formular (v3): Spalten, Schritte ---- */
.jobhack-fields{display:flex;flex-wrap:wrap;gap:0 1rem}
.jobhack-fields .jobhack-field.is-full{flex:1 1 100%}
.jobhack-fields .jobhack-field.is-half{flex:1 1 calc(50% - .5rem);min-width:220px}
.jobhack-step{border:0;margin:0;padding:0;min-width:0}
.jobhack-step legend{font-weight:700;font-size:1.1rem;margin-bottom:.75rem;padding:0}
.jobhack-step[hidden]{display:none}
.jobhack-progress{list-style:none;display:flex;gap:.5rem;margin:0 0 1.25rem;padding:0;flex-wrap:wrap}
.jobhack-progress li{display:flex;align-items:center;gap:.4rem;opacity:.55;font-size:.9rem}
.jobhack-progress li span{display:inline-grid;place-items:center;width:1.6rem;height:1.6rem;border-radius:50%;border:1px solid var(--jh-border);font-size:.8rem}
.jobhack-progress li.is-active,.jobhack-progress li.is-done{opacity:1}
.jobhack-progress li.is-active span{background:var(--jh-accent);color:#fff;border-color:transparent}
.jobhack-progress li.is-done span{background:color-mix(in srgb,var(--jh-ok) 25%,transparent)}
.jobhack-actions{display:flex;gap:.6rem;align-items:center;margin-top:.5rem}
.jobhack-button.is-secondary{background:transparent;color:inherit;border:1px solid var(--jh-border)}
.jobhack-actions [hidden]{display:none}
.jobhack-req{color:var(--jh-error)}
.jobhack-label{font-weight:600}
.jobhack-radios{display:flex;flex-direction:column;gap:.25rem}
.jobhack-content{padding:.75rem 1rem;border-radius:8px;background:color-mix(in srgb,var(--jh-accent) 8%,transparent)}
.jobhack-field input[type=date],.jobhack-field input[type=file]{font:inherit}

/* ---- Stellen-Karten & Listenansicht (v3.1) ---- */
.jobhack-card{position:relative;border:1px solid var(--jh-border);border-radius:var(--jh-radius);padding:1.25rem 1.35rem;display:flex;flex-direction:column;gap:1rem;background:transparent;transition:border-color .15s,box-shadow .15s,transform .15s}
.jobhack-card:hover,.jobhack-card:focus-within{border-color:var(--jh-accent);box-shadow:0 6px 22px -12px color-mix(in srgb,var(--jh-accent) 60%,transparent)}
.jobhack-card-main{display:flex;flex-direction:column;gap:.55rem;flex:1;min-width:0}
.jobhack-card-top{display:flex;gap:.5rem;align-items:center;min-height:1.1rem}
.jobhack-card-top:empty{display:none}
.jobhack-cat{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;opacity:.65;font-weight:600}
.jobhack-new{font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:.1rem .5rem;border-radius:99px;background:var(--jh-accent);color:#fff}
.jobhack-card h3{margin:0;font-size:1.2rem;line-height:1.3}
.jobhack-card h3 a::after{content:"";position:absolute;inset:0}               /* ganze Karte klickbar */
.jobhack-chips li{display:inline-flex;align-items:center;gap:.35rem}
.jobhack-chips li.is-place::before{content:"📍";font-size:.8em}
.jobhack-chips li.is-type::before{content:"💼";font-size:.8em}
.jobhack-chips li.is-start::before{content:"🗓";font-size:.8em}
.jobhack-excerpt{margin:0;opacity:.75;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.jobhack-card-side{display:flex;flex-direction:column;gap:.35rem;align-items:flex-start;position:relative;z-index:1}
.jobhack-salary{font-size:1rem}
.jobhack-until{font-size:.82rem;opacity:.65}
.jobhack-card .jobhack-button{margin-top:.25rem;position:relative;z-index:2;white-space:nowrap}

/* Listenansicht: kompakte Zeilen mit Info-Spalte rechts */
.jobhack-results.is-list{gap:.65rem}
.jobhack-results.is-list .jobhack-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(12rem,max-content);gap:1.5rem;align-items:center;padding:1rem 1.25rem 1rem 1.5rem;border-left:4px solid color-mix(in srgb,var(--jh-accent) 35%,transparent)}
.jobhack-results.is-list .jobhack-card:hover{border-left-color:var(--jh-accent)}
.jobhack-results.is-list .jobhack-card h3{font-size:1.1rem}
.jobhack-results.is-list .jobhack-excerpt{-webkit-line-clamp:2;font-size:.92rem}
.jobhack-results.is-list .jobhack-card-side{align-items:flex-end;text-align:right;border-left:1px solid var(--jh-border);padding-left:1.25rem;height:100%;justify-content:center}
.jobhack-results.is-list .jobhack-card .jobhack-button{align-self:stretch;text-align:center;padding:.55rem 1rem}
@media (max-width:760px){
	.jobhack-results.is-list .jobhack-card{grid-template-columns:1fr;gap:.75rem;padding:1rem 1.1rem 1rem 1.25rem}
	.jobhack-results.is-list .jobhack-card-side{align-items:flex-start;text-align:left;border-left:0;border-top:1px solid var(--jh-border);padding:.75rem 0 0;flex-direction:row;flex-wrap:wrap;gap:.35rem .9rem;align-items:center}
	.jobhack-results.is-list .jobhack-card .jobhack-button{align-self:auto;margin-left:auto}
}

/* Datei-Auswahl */
.jobhack-field input[type=file]{width:100%;padding:.4rem;border:1px dashed var(--jh-border);border-radius:8px;box-sizing:border-box}
.jobhack-field input[type=file]::file-selector-button{font:inherit;font-weight:600;margin-right:.75rem;padding:.4rem .9rem;border:0;border-radius:6px;background:var(--jh-accent);color:#fff;cursor:pointer}
.jobhack-field input[type=file]:focus-visible{outline:2px solid var(--jh-accent);outline-offset:2px}

/* ================= v3.2: modernes, ruhiges Design ================= */
.jobhack-careers,.jobhack-list,.jobhack-form-box,.jobhack-facts{--jh-radius:14px;--jh-soft:color-mix(in srgb,var(--jh-accent) 8%,transparent);--jh-ico-pin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");--jh-ico-case:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2'/%3E%3C/svg%3E");--jh-ico-cal:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");--jh-ico-up:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12'/%3E%3C/svg%3E")}

/* Karte */
.jobhack-card{padding:1.4rem 1.5rem 1.2rem;gap:1.1rem;border-color:color-mix(in srgb,currentColor 12%,transparent);box-shadow:0 1px 2px color-mix(in srgb,currentColor 6%,transparent)}
.jobhack-card:hover,.jobhack-card:focus-within{transform:translateY(-2px);border-color:color-mix(in srgb,var(--jh-accent) 55%,transparent);box-shadow:0 14px 30px -18px color-mix(in srgb,var(--jh-accent) 70%,transparent)}
.jobhack-card h3{font-size:1.2rem;font-weight:650;letter-spacing:-.01em}
.jobhack-cat{color:var(--jh-accent);opacity:1}
.jobhack-chips{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;margin:0;padding:0}
.jobhack-chips li{font-size:.8rem;padding:.2rem .65rem .2rem .55rem;background:color-mix(in srgb,currentColor 6%,transparent);border-radius:99px}
.jobhack-chips li::before{content:"";width:.95em;height:.95em;background:currentColor;opacity:.6;font-size:1em;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.jobhack-chips li.is-place{--ico:var(--jh-ico-pin)}.jobhack-chips li.is-type{--ico:var(--jh-ico-case)}.jobhack-chips li.is-start{--ico:var(--jh-ico-cal)}
.jobhack-chips li.is-place::before,.jobhack-chips li.is-type::before,.jobhack-chips li.is-start::before{content:"";font-size:1em}
.jobhack-excerpt{line-height:1.55}

/* Fußzeile der Karte: Gehalt links, ruhiger Button rechts – immer bündig unten */
.jobhack-results.is-grid .jobhack-card-side{margin-top:auto;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem .75rem;padding-top:1rem;border-top:1px solid color-mix(in srgb,currentColor 10%,transparent)}
.jobhack-card-meta{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.jobhack-salary{font-size:.95rem}
.jobhack-until{font-size:.78rem;opacity:.6}
.jobhack-button.is-card{margin:0;padding:.5rem .95rem;font-size:.9rem;font-weight:600;border-radius:99px;background:var(--jh-soft);color:var(--jh-accent);border:0;box-shadow:none;transition:background .15s,color .15s;margin-left:auto}
.jobhack-card:hover .jobhack-button.is-card,.jobhack-button.is-card:hover,.jobhack-button.is-card:focus-visible{background:var(--jh-accent);color:#fff}
.jobhack-button.is-card span{display:inline-block;transition:transform .15s}
.jobhack-card:hover .jobhack-button.is-card span{transform:translateX(3px)}

/* Liste */
.jobhack-results.is-list .jobhack-card{grid-template-columns:minmax(0,1fr) auto;border-left-width:1px;padding:1.1rem 1.35rem}
.jobhack-results.is-list .jobhack-card-side{flex-direction:row;align-items:center;justify-content:flex-end;gap:1.25rem;border-left:0;border-top:0;padding:0;height:auto;text-align:right}
.jobhack-results.is-list .jobhack-card-meta{align-items:flex-end}
.jobhack-results.is-list .jobhack-card .jobhack-button.is-card{align-self:center;margin:0}
@media (max-width:760px){.jobhack-results.is-list .jobhack-card{grid-template-columns:1fr}.jobhack-results.is-list .jobhack-card-side{justify-content:space-between;border-top:1px solid color-mix(in srgb,currentColor 10%,transparent);padding-top:.8rem}.jobhack-results.is-list .jobhack-card-meta{align-items:flex-start;text-align:left}}

/* Toolbar & Filter */
.jobhack-toolbar input[type=search],.jobhack-toolbar select{border-radius:99px;padding:.6rem 1rem}
.jobhack-toggle{border-radius:99px;padding:2px;gap:2px}
.jobhack-toggle button{border-radius:99px;padding:.4rem .8rem}

/* Formular-Karte */
.jobhack-form-box{border:1px solid color-mix(in srgb,currentColor 12%,transparent);border-radius:var(--jh-radius);padding:clamp(1.1rem,3vw,2rem);box-shadow:0 10px 30px -20px color-mix(in srgb,currentColor 40%,transparent)}
.jobhack-field input:not([type=checkbox]):not([type=radio]):not([type=file]),.jobhack-field select,.jobhack-field textarea{width:100%;box-sizing:border-box;border-radius:10px;padding:.65rem .8rem;transition:border-color .15s,box-shadow .15s}
.jobhack-field input:focus,.jobhack-field select:focus,.jobhack-field textarea:focus{outline:0;border-color:var(--jh-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--jh-accent) 22%,transparent)}
.jobhack-progress{gap:.25rem 1.1rem}
.jobhack-progress li.is-active{color:var(--jh-accent);font-weight:600}

/* Upload-Fläche */
.jobhack-drop{position:relative}
.jobhack-drop.is-enhanced{border:1.5px dashed color-mix(in srgb,currentColor 28%,transparent);border-radius:12px;background:color-mix(in srgb,currentColor 2.5%,transparent);transition:border-color .15s,background .15s}
.jobhack-drop.is-enhanced:hover,.jobhack-drop.is-over{border-color:var(--jh-accent);background:var(--jh-soft)}
.jobhack-drop.is-enhanced.is-over{border-style:solid;box-shadow:0 0 0 3px color-mix(in srgb,var(--jh-accent) 18%,transparent)}
.jobhack-drop.is-focus{outline:2px solid var(--jh-accent);outline-offset:2px}
.jobhack-drop.is-enhanced input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;border:0;z-index:1}
.jobhack-drop-ui{display:flex;align-items:center;gap:.8rem;padding:.9rem 1rem;pointer-events:none}
.jobhack-drop-icon{flex:none;width:2.4rem;height:2.4rem;border-radius:50%;background:var(--jh-soft);display:grid;place-items:center}
.jobhack-drop-icon::before{content:"";width:1.2rem;height:1.2rem;background:var(--jh-accent);-webkit-mask:var(--jh-ico-up) center/contain no-repeat;mask:var(--jh-ico-up) center/contain no-repeat}
.jobhack-drop-text{display:flex;flex-wrap:wrap;gap:0 .3em;line-height:1.35;font-size:.95rem}
.jobhack-drop-text span{color:var(--jh-accent);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.jobhack-drop.has-files .jobhack-drop-ui{padding:.55rem 1rem}
.jobhack-filelist{list-style:none;margin:.5rem 0 0;padding:0;display:flex;flex-direction:column;gap:.35rem}
.jobhack-filelist:empty{display:none}
.jobhack-file{display:flex;align-items:center;gap:.6rem;padding:.4rem .5rem .4rem .45rem;border:1px solid color-mix(in srgb,currentColor 14%,transparent);border-radius:10px;font-size:.88rem}
.jobhack-file.is-bad{border-color:var(--jh-error);color:var(--jh-error)}
.jobhack-file-badge{flex:none;min-width:2.3rem;text-align:center;font-size:.65rem;font-weight:700;letter-spacing:.04em;padding:.3rem .35rem;border-radius:6px;background:var(--jh-soft);color:var(--jh-accent)}
.jobhack-file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jobhack-file-size{flex:none;opacity:.6;font-size:.8rem}
.jobhack-file-remove{flex:none;width:1.8rem;height:1.8rem;border-radius:50%;border:0;background:transparent;color:inherit;font-size:1.2rem;line-height:1;cursor:pointer}
.jobhack-file-remove:hover{background:color-mix(in srgb,var(--jh-error) 15%,transparent);color:var(--jh-error)}
.jobhack-filetypes{display:block;margin-top:.35rem}
@media (prefers-reduced-motion:reduce){.jobhack-card,.jobhack-card *{transition:none!important;transform:none!important}}
.jobhack-results.is-list .jobhack-card,.jobhack-results.is-list .jobhack-card:hover{border-left-color:inherit}
.jobhack-results.is-list .jobhack-card{border-left-color:color-mix(in srgb,currentColor 12%,transparent)}
.jobhack-results.is-list .jobhack-card:hover{border-left-color:color-mix(in srgb,var(--jh-accent) 55%,transparent)}
