/* SatWorkers – Accessible Light Theme (Bitcoin Orange, B2B clean) */
:root{
  --bg:#f6f7fb;
  --surface:#ffffff;
  --surface-2:#eef2f7;
  --text:#0b1627;
  --muted:#475569;
  --primary:#F7931A;
  --primary-600:#d47f17;
  --primary-700:#b66c14;
  --ring:rgba(247,147,26,.38);
  --stroke:#e5eaf1;
  --radius:16px;
  --shadow:0 10px 28px rgba(12,22,39,.08);
  --footer-h:96px;
  --header-h:64px;
  color-scheme: light;
}

:root[data-theme="dark"]{
  --bg:#0b1118;
  --surface:#101824;
  --surface-2:#172130;
  --text:#e7eef7;
  --muted:#9aa7bb;
  --stroke:#263247;
  --ring:rgba(247,147,26,.28);
  --shadow:0 12px 28px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* App loader */
.app-loader{
  position:fixed;
  inset:0;
  z-index:2000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(160deg,rgba(247,147,26,.18),rgba(247,147,26,.05) 42%,var(--bg) 100%);
  opacity:1;
  visibility:visible;
  transition:opacity .35s ease,visibility .35s ease;
}
.app-loader.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.app-loader-logo{
  width:88px;
  height:88px;
  border-radius:24px;
  box-shadow:0 16px 40px rgba(247,147,26,.28);
  animation:loader-spin 1.6s linear infinite,loader-pulse 1.9s ease-in-out infinite;
}
@keyframes loader-spin{
  to{transform:rotate(360deg)}
}
@keyframes loader-pulse{
  0%,100%{box-shadow:0 16px 40px rgba(247,147,26,.28)}
  50%{box-shadow:0 18px 54px rgba(247,147,26,.42)}
}
@media (prefers-reduced-motion: reduce){
  .app-loader-logo{animation:none}
}

/* Basics */
*{box-sizing:border-box}
html,body{
  margin:0;padding:0;background:var(--bg);color:var(--text);
  font:16px/1.5 Inter,ui-sans-serif,system-ui,Segoe UI,Roboto,Arial,sans-serif
}
body.app-shell{
  background:
    radial-gradient(circle at top left, rgba(247,147,26,.14), transparent 28%),
    radial-gradient(circle at top right, rgba(12,22,39,.06), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72) 180px, transparent 180px),
    var(--bg);
}
body.app-shell.route-dashboard{
  background:
    radial-gradient(circle at top left, rgba(247,147,26,.18), transparent 26%),
    radial-gradient(circle at top center, rgba(247,147,26,.08), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82) 220px, transparent 220px),
    var(--bg);
}
body.shell-loading #appMain{
  opacity:.64;
  transition:opacity .16s ease;
}
a{color:inherit;text-decoration:none}
img,video{max-width:100%;height:auto;display:block}
.small{font-size:12px;color:var(--muted)}
.muted{color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#appPageScripts{display:none}

/* Container (unten Platz für Tabbar) */
.container{max-width:1000px;margin:0 auto;padding:16px 16px calc(var(--footer-h) + env(safe-area-inset-bottom))}
.container-wide{max-width:1000px;margin:0 auto}
.container-narrow{max-width:860px;margin:0 auto}
.account-page{max-width:1100px}

/* Header/Nav */
.header{
  position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.72);
  backdrop-filter:saturate(160%) blur(16px);
  border-bottom:1px solid rgba(229,234,241,.7);
  padding-top:env(safe-area-inset-top)
}
.navbar{display:grid;gap:10px;padding:12px 16px}
.navbar-main{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}
.brand-pill{
  padding:8px 12px;
  border-radius:18px;
  background:rgba(255,255,255,.8);
  border:1px solid rgba(229,234,241,.85);
  box-shadow:0 10px 26px rgba(12,22,39,.06);
}
.brand-copy{display:flex;flex-direction:column;min-width:0}
.brand-label{font-size:14px;line-height:1.1}
.brand-sub{
  font-size:11px;
  line-height:1.1;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.brand .dot{width:10px;height:10px;border-radius:999px;background:var(--primary)}
.search{flex:1}
.search-shell{
  width:min(680px, 100%);
  justify-self:center;
}
.search input{
  width:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--stroke);
  background:rgba(255,255,255,.94);color:var(--text);outline:none;
  box-shadow:0 12px 28px rgba(12,22,39,.06)
}
.search input:focus{border-color:var(--primary);box-shadow:0 0 0 6px var(--ring)}
.nav-actions{display:flex;align-items:center;gap:6px}
.lang-switch{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.lang-switch-label{
  font-size:10px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.03em;
}
.lang-select{
  height:28px;
  min-width:66px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:var(--surface-2);
  color:var(--text);
  font-size:11px;
  font-weight:700;
}
.theme-toggle{
  display:inline-flex;align-items:center;gap:4px;
  border-radius:999px;border:0;
  background:transparent;color:var(--muted);
  padding:2px 4px;font-size:10px;font-weight:600;letter-spacing:.02em;
  box-shadow:none;cursor:pointer;opacity:.45
}
.theme-toggle:hover{background:transparent;color:var(--text);opacity:.85;border-color:transparent}
.theme-icon{
  width:16px;height:16px;border-radius:50%;
  background:transparent;display:inline-flex;align-items:center;justify-content:center;
  font-size:10px;border:0
}
.theme-label{display:none}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 14px;border-radius:12px;border:1px solid var(--stroke);
  background:#fff;cursor:pointer;transition:background .15s ease;
  box-shadow:var(--shadow)
}
.btn:hover{background:#f9fafb}
.btn-primary{background:var(--primary);border-color:var(--primary);color:#0c0c0c}
.btn-primary:hover{background:var(--primary-600)}
.btn-ghost{background:transparent;border-color:var(--stroke)}
.btn-contrast{background:#fff;border-color:#fff;color:#101010}
.btn-outline{background:transparent;border-color:#d1d7e0}
.btn-danger{color:#b42318;border-color:#f2c1bc;background:#fff}
.btn-danger:hover{background:#fff3f2}
.btn-dark{background:#101010;color:#fff;border-color:#101010}
.btn-dark:hover{opacity:.92}
.btn-sm{padding:7px 10px;border-radius:10px;font-size:13px;line-height:1.2}
.btn:disabled,
.btn[aria-disabled="true"]{
  opacity:.6;cursor:not-allowed;pointer-events:none
}

/* Dark mode adjustments */
:root[data-theme="dark"] .header{background:#0f141b;border-bottom:1px solid var(--stroke)}
:root[data-theme="dark"] body.app-shell{
  background:
    radial-gradient(circle at top left, rgba(247,147,26,.18), transparent 26%),
    radial-gradient(circle at top right, rgba(255,255,255,.04), transparent 22%),
    linear-gradient(180deg, rgba(11,17,24,.96), rgba(11,17,24,.88) 220px, transparent 220px),
    var(--bg);
}
:root[data-theme="dark"] .brand-pill{
  background:rgba(16,24,36,.86);
  border-color:rgba(38,50,71,.9);
}
:root[data-theme="dark"] .search input{
  background:#121b27;border-color:var(--stroke);color:var(--text);
  box-shadow:0 6px 18px rgba(0,0,0,.4)
}
:root[data-theme="dark"] .btn{background:#121b27;border-color:var(--stroke);color:var(--text)}
:root[data-theme="dark"] .btn:hover{background:#162132}
:root[data-theme="dark"] .btn-contrast{background:#1a2434;border-color:#1a2434;color:var(--text)}
:root[data-theme="dark"] .btn-danger{background:#1a1212;border-color:#5a2a2a;color:#fca5a5}
:root[data-theme="dark"] .btn-dark{background:#e2e8f0;border-color:#e2e8f0;color:#0f172a}
:root[data-theme="dark"] .card{background:var(--surface);border-color:var(--stroke);box-shadow:var(--shadow)}
:root[data-theme="dark"] .pagebar{box-shadow:0 12px 28px rgba(0,0,0,.45)}
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .chip-strong{
  background:var(--surface-2);color:var(--text);border-color:var(--stroke)
}
:root[data-theme="dark"] .badge{
  background:var(--surface-2);color:var(--text);border-color:var(--stroke)
}
:root[data-theme="dark"] .footer-nav{
  background:#0f141b;border-color:var(--stroke);box-shadow:0 10px 28px rgba(0,0,0,.6)
}
:root[data-theme="dark"] .tab-badge{border-color:#0f141b;color:#111}
:root[data-theme="dark"] .profile-header{background:var(--surface-2);border-color:var(--stroke)}
:root[data-theme="dark"] .section-card{
  background:linear-gradient(180deg,#101824 0%,#0d1420 100%)
}
:root[data-theme="dark"] .account-form .field-control{
  border-color:#223048;
  background:linear-gradient(180deg,#121b27 0%,#0f1622 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 10px 22px rgba(0,0,0,.45)
}
:root[data-theme="dark"] .account-form .field-control:hover{
  border-color:#2a3a52
}
:root[data-theme="dark"] .theme-toggle{background:transparent;color:var(--muted)}
:root[data-theme="dark"] .theme-toggle:hover{background:transparent;color:var(--text);border-color:transparent}
:root[data-theme="dark"] .lang-select{background:transparent}
:root[data-theme="dark"] .lang-switch-label{color:var(--muted)}
:root[data-theme="dark"] .theme-icon{background:transparent;border-color:transparent}
:root[data-theme="dark"] .chat-msg{background:#0f1622;border-color:#223048}
:root[data-theme="dark"] .chat-msg.me{background:#162235;border-color:#2a3a52}
:root[data-theme="dark"] .select-invert,
:root[data-theme="dark"] .select-pill,
:root[data-theme="dark"] .quickfilter{
  background-image:url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23e7eef7' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Layout & Karten */
.grid{display:grid;gap:14px}
.grid > *{min-width:0}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){.grid-2{grid-template-columns:1fr}}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){.grid-3{grid-template-columns:1fr}}

.card{
  background:var(--surface);border:1px solid var(--stroke);
  border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);
  display:block
}
.card.compact{padding:12px;border-radius:12px}

/* Card lists inside containers (e.g., inbox) */
.card-list .card{
  background:var(--surface-2);
  border-color:var(--stroke);
  box-shadow:none;
}
.card-list .card:hover{
  background:var(--surface);
  box-shadow:var(--shadow);
}

/* Simple action row (admin/support) */
.actions-row{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center
}
.actions-row form{margin:0;display:flex}

/* Karten-Raster 4-3-2-1 (Index) */
.cards-grid{display:grid;gap:16px;grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1280px){.cards-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:960px){ .cards-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){ .cards-grid{grid-template-columns:1fr}}

/* Karten-Raster 2-1 (Dashboard) */
.cards-grid-2{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:640px){ .cards-grid-2{grid-template-columns:1fr}}

/* Karten-Inhalte */
.card-hero{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px}
.card-hero.thumb{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px;margin-bottom:8px}
.card-hero.lg{aspect-ratio:16/7;border-radius:14px}
.cards-grid .offer-title{
  font-weight:800;font-size:18px;margin:6px 0 4px;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis
}
.cards-grid .offer-desc{
  color:var(--muted);
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
  overflow:hidden;
}

/* CTA unten – Preis + Button zentriert (Index) */
.cards-grid .card{ display:flex; flex-direction:column; }
.cards-grid .card-cta{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  margin-top:auto;
}

.line-2,.line-3,.line-4{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.line-2{-webkit-line-clamp:2}.line-3{-webkit-line-clamp:3}.line-4{-webkit-line-clamp:4}
.h2{font-size:22px;line-height:1.3;margin:8px 0 6px}
.split{display:flex;align-items:center;justify-content:space-between;gap:12px}

/* Badges & Preis */
.badge{
  display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;
  border:1px solid var(--stroke);background:var(--surface-2);color:var(--text);font-size:12px
}
.price{font-size:18px;font-weight:800;white-space:nowrap}
hr{border:0;border-top:1px solid var(--stroke);margin:14px 0}

/* Flash */
.flash{padding:12px 14px;border-radius:12px;margin:8px 0;font-size:14px}
.flash.ok{background:rgba(22,163,74,.10);border:1px solid rgba(22,163,74,.35)}
.flash.warn{background:rgba(234,179,8,.12);border:1px solid rgba(234,179,8,.45)}
.flash.error{background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.45)}

/* ===== Orange Filter (Index) ===== */
.filter-wrap{position:sticky;top:calc(var(--header-h) + 8px);z-index:6;margin:8px 0 12px}
.filter-toolbar{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  background:var(--primary);border-radius:16px;padding:10px 12px;color:#121212;
  box-shadow:0 12px 28px rgba(247,147,26,.28);border:1px solid rgba(0,0,0,.06);flex-wrap:wrap
}
.toolbar-left{
  display:grid;grid-template-columns:repeat(2, minmax(160px, 1fr));
  gap:8px;align-items:center;flex:1
}

/* Selects */
.select-invert,
.select-pill,
.quickfilter{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  width:100%;min-width:0;
  font-size:15px;line-height:1.25;color:var(--text);
  background:var(--surface);border:1px solid var(--stroke);
  border-radius:12px;
  padding:10px 36px 10px 12px;
  height:auto;
  background-image:url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230b1627' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;
  box-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.select-invert:focus,.select-pill:focus,.quickfilter:focus{outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.60)}
.select-invert option,.select-pill option,.quickfilter option{color:var(--text)}
.quickfilter-wrap{display:none}
.toolbar-right{display:flex;gap:8px;flex-wrap:wrap}
.filter-panel{display:none;margin-top:10px}
.filter-wrap.open .filter-panel{display:block}
@media(max-width:640px){
  .filter-wrap:not(.open) .toolbar-left{display:none}
  .filter-wrap:not(.open) .quickfilter-wrap{display:block;flex:1}
  .toolbar-left{grid-template-columns:1fr}
  .filter-wrap:not(.open) .toolbar-right .btn-contrast{display:none}
  .filter-wrap:not(.open) .toolbar-right .btn-dark{width:100%}
}

/* ===== Orange Pagebar (alle anderen Seiten) ===== */
.pagebar{
  position:sticky; top:calc(var(--header-h) + 8px); z-index:6;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:var(--primary); color:#121212;
  padding:10px 12px; border-radius:16px;
  box-shadow:0 12px 28px rgba(247,147,26,.28);
  border:1px solid rgba(0,0,0,.06);
  margin:8px 0 12px
}
.pagebar-title{display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px}
.pagebar-sub{font-size:12px; opacity:.85}
.pagebar-actions{display:flex; gap:8px; flex-wrap:wrap}
.account-page .pagebar{width:100%}
.account-page .account-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
@media(max-width:900px){.account-page .account-grid{grid-template-columns:1fr}}
.account-form{display:block}
.account-grid{gap:16px}
.stack{display:flex;flex-direction:column;gap:12px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.section-title{font-weight:800;font-size:16px}
.section-sub{font-size:12px;color:var(--muted)}
.role-pills{display:flex;flex-wrap:wrap;gap:6px}
.profile-header{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  background:var(--surface-2);border:1px solid var(--stroke);
  padding:10px 12px;border-radius:12px;margin:8px 0 12px
}
.avatar{
  width:52px;height:52px;border-radius:50%;
  background:#fff;border:1px solid var(--stroke);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;overflow:hidden
}
.avatar-sm{width:40px;height:40px;font-size:14px}
.avatar img{width:100%;height:100%;object-fit:cover}
.profile-name{font-weight:800;font-size:16px}
.profile-meta{min-width:0}
.avatar-edit{position:relative;cursor:pointer}
.avatar-edit input{display:none}
.avatar-edit:hover,
.avatar-edit:focus-within{box-shadow:0 0 0 4px var(--ring)}
.account-actions{justify-content:flex-end}
.section-card{
  background:linear-gradient(180deg,#ffffff 0%,#f7f9ff 100%);
  border:1px solid var(--stroke);
  box-shadow:0 12px 26px rgba(12,22,39,.06);
}
.section-toggle{
  margin-top:12px;
  padding-top:10px;
  border-top:1px dashed var(--stroke);
}
.section-toggle:first-child{
  margin-top:0;
  padding-top:0;
  border-top:0;
}
.section-toggle > summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  font-weight:800;
  font-size:13px;
  color:var(--text);
}
.section-toggle > summary::-webkit-details-marker{display:none}
.section-toggle > summary .summary-sub{
  font-weight:600;
  color:var(--muted);
  font-size:12px;
}
.section-toggle > summary::after{
  content:"+";
  margin-left:auto;
  font-weight:900;
  color:var(--muted);
}
.section-toggle[open] > summary::after{content:"–";color:var(--text)}

.mode-help{
  margin:8px 0 12px;
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius:16px;
  background:var(--surface);
}
.mode-help .mode-help-list{
  display:grid;gap:10px;margin-top:10px
}
@media(min-width:900px){
  .mode-help .mode-help-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.mode-help-item{
  padding:10px 12px;border-radius:14px;background:var(--surface-2);
  border:1px solid var(--stroke)
}
.mode-help-title{display:flex;align-items:center;gap:6px}
.info-tip{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;border-radius:999px;
  background:var(--surface-2);color:var(--muted);
  font-size:11px;font-weight:800;cursor:help;
  border:1px solid var(--stroke)
}
.info-tip::after{
  content:attr(data-tip);
  position:absolute;left:50%;bottom:calc(100% + 8px);
  transform:translateX(-50%);
  background:var(--text);color:var(--surface);
  padding:6px 8px;border-radius:8px;font-size:11px;
  white-space:nowrap;opacity:0;pointer-events:none;
  box-shadow:var(--shadow);transition:opacity .15s ease, transform .15s ease
}
.info-tip::before{
  content:"";position:absolute;left:50%;bottom:calc(100% + 2px);
  transform:translateX(-50%);
  border:6px solid transparent;border-top-color:var(--text);
  opacity:0;transition:opacity .15s ease
}
.info-tip:hover::after,.info-tip:focus::after{
  opacity:1;transform:translateX(-50%) translateY(-2px)
}
.info-tip:hover::before,.info-tip:focus::before{opacity:1}

.inbox-row{display:flex;gap:12px;align-items:flex-start}
.inbox-content{min-width:0;flex:1}

/* Mode switch (Marketplace / Staffing / Jobs) */
.mode-switch{
  display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  padding:6px;border-radius:999px;background:var(--surface);
  border:1px solid var(--stroke);box-shadow:var(--shadow);
  margin:8px 0 12px
}
.mode-tab{
  flex:1 1 0;text-align:center;padding:8px 12px;border-radius:999px;
  font-size:12px;font-weight:800;color:var(--muted)
}
.mode-tab.active{
  background:var(--primary);color:#111;border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 22px rgba(247,147,26,.28)
}
.mode-actions{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px}

/* Jobs */
.job-list-grid{margin-top:10px}
.job-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  height:100%;
}
.job-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}
.job-card .offer-title{
  margin:2px 0;
  line-height:1.35;
  font-size:17px;
}
.job-summary{
  margin:0;
  line-height:1.55;
}
.job-company{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.job-company .avatar{
  width:34px;
  height:34px;
  font-size:12px;
}
.job-company-name{
  font-weight:700;
  font-size:13px;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.job-keywords{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.job-keyword-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:12px;
}
.job-keyword-picker{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.job-keyword-option{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--stroke);
  border-radius:999px;
  background:var(--surface);
  padding:6px 10px;
  font-size:13px;
  cursor:pointer;
}
.job-keyword-option input{
  margin:0;
}
.job-meta-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  font-size:13px;
  color:var(--muted);
}
.job-meta-line span{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.job-card .actions-row{margin-top:auto}

.job-detail-card{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.job-detail-head{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.job-company-lg .avatar{
  width:44px;
  height:44px;
}
.job-company-lg .job-company-name{
  font-size:15px;
}
.job-meta-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.job-meta-item{
  border:1px solid var(--stroke);
  border-radius:12px;
  background:var(--surface);
  padding:10px 12px;
}
.job-meta-label{
  display:block;
  margin-bottom:2px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--muted);
}
.job-description{
  border:1px solid var(--stroke);
  border-radius:12px;
  background:var(--surface);
  padding:14px;
  line-height:1.7;
  white-space:pre-line;
}
.job-apply-hint{margin-top:10px}
@media (max-width:760px){.job-meta-grid{grid-template-columns:1fr}}
.account-form label{
  font-size:12px;letter-spacing:.03em;text-transform:uppercase;
  color:#637085;margin-top:10px;line-height:1.2;min-height:30px
}
.account-form .field-control{
  display:flex;align-items:center;gap:10px;
  padding:0 14px;height:52px;border-radius:16px;
  border:1px solid #e1e6f0;background:linear-gradient(180deg,#ffffff 0%,#f4f7fb 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 8px 18px rgba(12,22,39,.06);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease,background .2s ease;
  min-width:0
}
.account-form .field-control:hover{border-color:#cfd7e6;transform:translateY(-1px)}
.account-form .field-control.field-textarea{
  height:auto;align-items:flex-start;padding:10px 12px
}
.account-form .field-icon{
  width:28px;height:28px;border-radius:8px;
  background:var(--surface-2);display:flex;align-items:center;justify-content:center;
  font-size:13px;opacity:.8;flex:0 0 auto
}
.account-form .field-control input[type="text"],
.account-form .field-control input[type="email"],
.account-form .field-control input[type="password"],
.account-form .field-control select{
  border:0;background:transparent;box-shadow:none;
  height:100%;padding:0;font-weight:600;color:var(--text);
  font-size:15px;letter-spacing:.01em;
  flex:1;min-width:0;width:auto
}
.account-form .field-control textarea{
  border:0;background:transparent;box-shadow:none;
  width:100%;min-height:120px;resize:vertical;
  font-weight:600;color:var(--text);font-size:15px;letter-spacing:.01em;
  flex:1;min-width:0
}
.account-form .field-control input::placeholder,
.account-form .field-control textarea::placeholder{color:#9aa3b2;font-weight:500}
.account-form .field-control:focus-within{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(247,147,26,.16),0 12px 26px rgba(247,147,26,.14)
}
.account-form .field-control select{appearance:none}
.account-form .field-control select::-ms-expand{display:none}
.account-form .select-control{position:relative}
.account-form .field-caret{
  font-size:10px;color:#9aa3b2;letter-spacing:.02em;
  margin-left:6px;flex:0 0 auto
}
.account-form .field-control input:disabled,
.account-form .field-control textarea:disabled,
.account-form .field-control select:disabled{
  color:#8b95a7
}
.quick-actions{display:flex;flex-wrap:wrap;gap:8px}
.quick-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.quick-links .chip{background:var(--surface-2);border-color:var(--stroke)}
.tag-grid{display:flex;flex-wrap:wrap;gap:8px}
.tag-pill input{display:none}
.tag-pill span{
  display:inline-flex;align-items:center;gap:6px;padding:6px 10px;
  border-radius:999px;background:var(--surface-2);border:1px solid var(--stroke);
  font-size:12px;color:var(--muted);cursor:pointer
}
.tag-pill input:checked + span{
  background:var(--primary);color:#111;border-color:rgba(0,0,0,.12);
  box-shadow:0 10px 22px rgba(247,147,26,.28)
}
.rating-display{display:flex;align-items:center;gap:4px}
.rating-display .star{font-size:16px;color:#cbd5e1}
.rating-display .star.filled{color:var(--primary)}
.rating-input{display:inline-flex;flex-direction:row-reverse;gap:4px}
.rating-input input{display:none}
.rating-input label{
  display:inline-flex;
  margin:0;font-size:20px;line-height:1;color:#cbd5e1;cursor:pointer;transition:color .12s ease
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label{
  color:var(--primary)
}
.choice-grid{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
@media (max-width:900px){.choice-grid{grid-template-columns:1fr}}
.choice-card{display:block;width:100%;height:100%;margin:0}
.choice-card input{display:none}
.choice-body{
  border:1px solid var(--stroke);border-radius:14px;padding:12px;
  background:var(--surface-2);min-height:140px;height:140px;
  display:flex;flex-direction:column;gap:6px;
  justify-content:center;align-items:center;text-align:center;
  width:100%;
  height:100%;
  transition:all .15s ease;
}
@media (max-width:900px){
  .choice-body{min-height:120px;height:120px}
}
.choice-card:hover .choice-body{
  border-color:var(--primary);
  box-shadow:0 12px 24px rgba(247,147,26,.16)
}
.choice-card input:checked + .choice-body{
  border-color:var(--primary);background:var(--surface);
  box-shadow:0 14px 28px rgba(247,147,26,.22)
}
.choice-title{font-weight:800}
.choice-sub{font-size:12px;color:var(--muted)}
.chip,
.chip-strong{
  display:inline-flex; align-items:center; gap:6px; padding:6px 10px;
  border-radius:999px; background:#fff; color:#0c0c0c;
  border:1px solid rgba(0,0,0,.06); font-size:12px
}
.chip-strong{background:#fff; border-color:#fff; font-weight:800}

/* ===== Formulare ===== */
label{display:block;margin:8px 0 6px;font-weight:700}
input[type="text"],input[type="email"],input[type="password"],select{
  height:44px;line-height:44px;
  width:100%;padding:0 14px;border-radius:12px;border:1px solid var(--stroke);
  background:var(--surface);color:var(--text);outline:none
}
textarea{
  width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--stroke);
  background:var(--surface);color:var(--text);min-height:140px;outline:none
}
input:focus,textarea:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 6px var(--ring)}
.form{width:100%}

/* Grid für Create/Account – mobil 1, desktop 2 Spalten */
.form-grid{display:grid;gap:18px 22px;grid-template-columns:1fr}
@media (min-width:960px){.form-grid{grid-template-columns:1fr 1fr}}
.form-grid .col{display:contents}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field .help{font-size:12px;color:var(--muted)}
.inline-two{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.section-heading{margin:.2rem 0 .6rem}
.form-actions{display:flex;gap:10px;justify-content:flex-start;margin-top:12px}

/* Titelbild/Video – Dropzone & Vorschau */
.file-wrap{display:block}
.file-two{
  grid-column:1 / -1;
  display:grid;gap:16px;grid-template-columns:1fr;
}
@media (min-width:960px){.file-two{grid-template-columns:1fr 1fr}}
.file-drop{
  position:relative; border:1px dashed var(--stroke); background:var(--surface-2);
  border-radius:12px; height:200px; padding:12px;
  display:flex; align-items:center; justify-content:center; text-align:center;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
  cursor:pointer
}
.file-drop:hover{background:var(--surface)}
.file-drop.drag{border-color:var(--primary);box-shadow:0 0 0 6px var(--ring)}
.file-cta{display:flex;flex-direction:column;gap:6px;align-items:center}
.file-cta-title{font-weight:700}
.file-cta-sub{color:var(--muted)}
.file-preview{
  position:absolute; inset:8px;
  width:calc(100% - 16px); height:calc(100% - 16px);
  object-fit:cover; border-radius:10px; background:var(--surface);
  box-shadow:var(--shadow)
}
.video-preview{object-fit:cover}
.file-actions{margin-top:8px;display:flex;gap:8px;justify-content:flex-end}

/* Pakete in Create-Offer */
.package-grid{display:grid;gap:16px;grid-template-columns:1fr}
@media (min-width:960px){.package-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.package-card{
  border:1px solid var(--stroke);background:var(--surface);
  border-radius:14px;padding:12px;box-shadow:var(--shadow);
  display:flex;flex-direction:column;gap:10px
}
.package-title{
  font-weight:800;letter-spacing:.1px;padding:4px 8px;border-radius:999px;
  display:inline-flex;align-items:center;gap:8px;background:var(--surface-2);
  border:1px solid var(--stroke);width:max-content
}

/* Footer Tabbar */
.footer-nav{
  position:fixed;bottom:10px;left:50%;transform:translateX(-50%);z-index:999;
  background:#fff;border:1px solid var(--stroke);border-radius:16px;padding:8px 12px;
  display:grid;grid-template-columns:repeat(4,1fr);gap:8px;box-shadow:var(--shadow)
}
.footer-nav.cols-5{grid-template-columns:repeat(5,1fr)}
.tab{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px;border-radius:10px;font-size:12px;color:var(--muted);position:relative}
.tab.active{color:var(--text);background:var(--surface-2);border:1px solid var(--stroke)}
.tab-badge{
  position:absolute;top:4px;right:10px;min-width:18px;height:18px;padding:0 6px;
  border-radius:999px;background:var(--primary);color:#111;font-size:11px;font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;line-height:1;border:2px solid #fff;
  box-shadow:0 8px 16px rgba(247,147,26,.28)
}
.hidden{display:none !important}

/* ============================================================
   DASHBOARD-ONLY KOMPAKT + HOVER-REVEAL-AKTIONEN
   ============================================================ */
.dash .cards-grid-2{gap:12px}
@media (max-width:640px){.dash .cards-grid-2{grid-template-columns:1fr}}
.dash .card.compact{padding:10px;border-radius:12px}
.dash .card-hero.thumb{height:110px;aspect-ratio:auto;margin-bottom:6px;border-radius:10px;object-fit:cover}
.dash .offer-title{font-size:15px;margin:4px 0}
.dash .badge{font-size:11px;padding:5px 8px}
.dash .price{font-size:16px;margin-top:2px}
.dash .btn-sm{padding:6px 9px;font-size:12px;border-radius:9px}

/* Basis-Layout der Actions: gleichbreit & umbruchfähig */
.dash .actions-row{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));
  gap:8px;
  margin-top:8px;
}
.dash .actions-row > *{min-width:0}
.dash .actions-row form{margin:0;display:flex}
.dash .actions-row a.btn,
.dash .actions-row form .btn{
  width:100%;justify-content:center;text-align:center;
  padding:8px 10px;line-height:1.15;white-space:normal;border-radius:9px;
}

/* Desktop: Buttons nur bei Hover/Focus der Karte zeigen */
@media (hover:hover) and (pointer:fine){
  .dash .card.compact .actions-row{
    /* gleiche Grid-Struktur beibehalten, aber „unsichtbar“ */
    opacity:0; transform:translateY(4px);
    max-height:0; overflow:hidden; padding-top:0;
    transition:opacity .18s ease, transform .18s ease, max-height .18s ease, padding-top .18s ease;
  }
  .dash .card.compact:hover .actions-row,
  .dash .card.compact:focus-within .actions-row{
    opacity:1; transform:translateY(0);
    max-height:260px; padding-top:8px; overflow:visible;  /* Platz für mehrere Button-Zeilen */
  }
}

.dashboard-hero{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) auto;
  gap:18px;
  align-items:end;
  padding:22px;
  background:
    linear-gradient(135deg, rgba(247,147,26,.18), rgba(247,147,26,.06) 44%, rgba(255,255,255,.84) 100%),
    var(--surface);
  border-color:rgba(247,147,26,.18);
}
.dashboard-kicker{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--muted);
  margin-bottom:8px;
}
.dashboard-title{
  margin:0;
  font-size:30px;
  line-height:1.05;
}
.dashboard-subtitle{
  margin:10px 0 0;
  max-width:58ch;
  color:var(--muted);
}
.dashboard-hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.dashboard-glance{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
  margin:12px 0;
}
.glance-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:16px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.8);
  box-shadow:0 12px 28px rgba(12,22,39,.05);
}
.glance-card:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(12,22,39,.08);
}
.glance-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
}
.glance-value{
  font-size:30px;
  line-height:1;
}
.glance-value-money{
  font-size:24px;
  line-height:1.15;
}
.glance-meta{
  font-size:13px;
  color:var(--muted);
}
.dashboard-focus{
  margin-bottom:12px;
}
.focus-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.focus-item{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:16px;
  border-radius:18px;
  background:var(--surface-2);
  border:1px solid var(--stroke);
  min-height:180px;
  min-width:0;
}
.focus-item h3{
  margin:0;
  font-size:18px;
  line-height:1.2;
}
.focus-item .btn{
  margin-top:auto;
}
.focus-item-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.focus-item-count{
  min-width:34px;
  height:34px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(247,147,26,.12);
  color:var(--text);
  font-size:14px;
  font-weight:800;
  border:1px solid rgba(247,147,26,.16);
}
.focus-item-primary{
  background:linear-gradient(145deg, rgba(247,147,26,.16), rgba(255,255,255,.78));
  border-color:rgba(247,147,26,.22);
}
.focus-item-applications{
  background:
    linear-gradient(180deg, rgba(247,147,26,.08), rgba(247,147,26,0) 58%),
    var(--surface-2);
  border-color:rgba(247,147,26,.18);
}
.focus-apps-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}
.focus-app-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(255,255,255,.7);
  min-width:0;
}
.focus-app-logo{
  flex:0 0 auto;
}
.focus-app-copy{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.focus-app-copy strong,
.focus-app-copy span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}
.focus-app-copy strong{
  font-size:14px;
  line-height:1.2;
}
.focus-app-copy span{
  font-size:12px;
  color:var(--muted);
}
.focus-app-more{
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  padding:0 2px;
}
.focus-item-empty{
  grid-column:1 / -1;
  min-height:auto;
}
.dashboard-sections{
  align-items:start;
}

:root[data-theme="dark"] .dashboard-hero{
  background:
    linear-gradient(135deg, rgba(247,147,26,.22), rgba(247,147,26,.06) 44%, rgba(16,24,36,.92) 100%),
    var(--surface);
  border-color:rgba(247,147,26,.18);
}
:root[data-theme="dark"] .glance-card{
  background:rgba(16,24,36,.82);
}
:root[data-theme="dark"] .focus-item-applications{
  background:
    linear-gradient(180deg, rgba(247,147,26,.16), rgba(247,147,26,0) 58%),
    rgba(23,33,48,.9);
  border-color:rgba(247,147,26,.24);
}
:root[data-theme="dark"] .focus-app-row{
  background:rgba(11,17,24,.38);
  border-color:rgba(38,50,71,.82);
}

/* ===== Mobile app-like refinements ===== */
@media (max-width:720px){
  .container{padding:12px 12px calc(var(--footer-h) + env(safe-area-inset-bottom))}
  .header{background:rgba(255,255,255,.88);box-shadow:0 6px 20px rgba(12,22,39,.06)}
  .navbar{gap:10px;padding:10px 14px 12px}
  .navbar-main{align-items:flex-start}
  .brand{font-size:18px}
  .brand img{width:24px;height:24px}
  .search{width:100%}
  .search input{
    height:46px;border-radius:16px;background:#fff;
    box-shadow:0 6px 18px rgba(12,22,39,.08)
  }
  .brand-pill{width:100%;border-radius:16px}
  .brand-sub{display:none}
  .nav-actions{justify-content:flex-end;width:100%}
  .pagebar{position:static;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;border-radius:18px}
  .pagebar-title{font-size:17px;flex-wrap:wrap}
  .pagebar-actions{width:100%}
  .pagebar-actions .btn{width:100%;justify-content:center}
  .dashboard-hero{grid-template-columns:1fr;padding:18px}
  .dashboard-title{font-size:24px}
  .dashboard-hero-actions{justify-content:stretch}
  .dashboard-hero-actions .btn{width:100%;justify-content:center}
  .dashboard-glance{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .focus-grid{grid-template-columns:1fr}
  .focus-item{min-height:auto}
  .focus-item-topline{align-items:flex-start;flex-wrap:wrap}
  .focus-item-count{margin-left:auto}
  .focus-app-row{padding:10px}
  .focus-app-copy strong{font-size:13px}
  .focus-app-copy span{font-size:11px}
  .cards-grid{gap:12px}
  .card{padding:14px;border-radius:18px}
  .card.compact{padding:14px;border-radius:18px}
  .card-hero.thumb{border-radius:14px}
  .card-hero.lg{border-radius:16px}
  .badge{font-size:11px}
  .price{font-size:17px}
  .form-actions{flex-direction:column}
  .form-actions .btn{width:100%;justify-content:center}
  .inline-two{grid-template-columns:1fr}
  .split{flex-direction:column;align-items:stretch}
  .split > *{width:100%}
  .split .btn{width:100%;justify-content:center}
  .footer-nav{
    left:0;right:0;bottom:0;transform:none;width:100%;
    border-radius:18px 18px 0 0;border-left:0;border-right:0;border-bottom:0;
    padding:10px 12px calc(env(safe-area-inset-bottom) + 8px);
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)
  }
  .tab{min-height:52px;padding:10px 6px;gap:4px;font-size:12px}
  .tab span{font-size:11px;letter-spacing:.2px}
  .tab-badge{top:6px;right:12px}
  .btn,.tab{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  input[type="text"],input[type="email"],input[type="password"],select,textarea,button{font-size:16px}
  .select-invert,.select-pill,.quickfilter{font-size:16px}
}

/* ===== Chat ===== */
.chat-list{display:flex;flex-direction:column;gap:10px;margin:10px 0 16px}
.chat-msg{
  padding:10px 12px;border-radius:12px;border:1px solid var(--stroke);
  background:var(--surface-2);max-width:92%
}
.chat-msg.me{align-self:flex-end;background:#fff;border-color:#f1d4b0}
.chat-meta{font-size:12px;color:var(--muted);margin-bottom:4px}
.chat-body{white-space:pre-wrap}
.chat-attach{display:inline-flex;margin-top:6px;font-size:13px}
.chat-image{
  margin-top:8px;max-width:100%;border-radius:12px;border:1px solid var(--stroke);
  display:block
}
.chat-report{margin-top:8px}
.chat-report summary{cursor:pointer;font-size:12px;color:var(--muted)}
.chat-report textarea{min-height:80px}
