/* Work page: restored local layout after rollback from section.standard.css. */

body[data-page="work"] .z-section-page {
  --page-gap: 24px;
  --section-pad: 18px;
  --hero-pad: 24px;
  --hero-radius: 24px;
  --sidebar-w: clamp(300px, 24vw, 360px);
  --hero-media-min-h: clamp(280px, 26vw, 360px);
  --hero-title-size: clamp(40px, 4.6vw, 58px);
  --hero-desc-size: clamp(18px, 2vw, 24px);
  --hero-title-color: #111b3d;
  --hero-desc-color: #2f3d62;
  --hero-copy-max: 760px;
  --hero-bg: linear-gradient(180deg, #f7f9fc 0%, #edf2f8 100%);
  --hero-media-image: url("../../img/work-banner.jpg");
  --hero-media-overlay: linear-gradient(140deg, rgba(71, 85, 105, 0.34) 0%, rgba(59, 130, 246, 0.2) 48%, rgba(255, 255, 255, 0.08) 100%);
  --step-bg: #f9fafe;
  --step-min-h: 196px;
  --rail-title-size: clamp(24px, 1.8vw, 34px);
  --section-title-size: 32px;
  gap: 24px;
  min-width: 0;
  overflow-x: hidden;
}

body[data-page="work"] .z-section-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--page-gap);
  align-items: start;
  min-width: 0;
}

body[data-page="work"] .z-section-maincol,
body[data-page="work"] .z-section-rail {
  display: grid;
  gap: var(--page-gap);
  min-width: 0;
}

body[data-page="work"] .u2-top {
  margin-top: 0;
}

body[data-page="work"] .u2-top__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: clamp(16px, 1.5vw, 20px);
  align-items: start !important;
}

body[data-page="work"] .u2-top__main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

body[data-page="work"] .u2-top__aside {
  position: sticky;
  top: 20px;
  align-self: start;
  height: auto;
}

body[data-page="work"] .z-section-card,
body[data-page="work"] .z-section-rail-card,
body[data-page="work"] .z-section-hero {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
  min-width: 0;
}

body[data-page="work"] .z-section-card {
  padding: var(--section-pad);
}

body[data-page="work"] .z-section-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: var(--page-gap);
  padding: var(--hero-pad);
  border-radius: var(--hero-radius);
  background: var(--hero-bg);
  overflow: hidden;
}

body[data-page="work"] .z-section-hero__left {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
  max-width: var(--hero-copy-max);
}

body[data-page="work"] .z-section-hero__title {
  margin: 0;
  color: var(--hero-title-color);
  font-size: var(--hero-title-size);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

body[data-page="work"] .z-section-hero__desc {
  margin: 0;
  color: var(--hero-desc-color);
  font-size: var(--hero-desc-size);
  line-height: 1.22;
}

body[data-page="work"] .z-section-search {
  width: min(100%, 920px);
  max-width: 100%;
  min-width: 0;
  padding: 4px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr) minmax(0, 0.9fr) 132px;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 2px;
}

body[data-page="work"] .z-section-search > * {
  min-width: 0;
  max-width: 100%;
}

body[data-page="work"] .z-section-search .z-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  pointer-events: none;
  flex: 0 0 auto;
  z-index: 1;
}

body[data-page="work"] .z-section-search .z-search__input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px 0 44px;
  border: 1px solid rgba(20, 24, 40, 0.1);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
}

body[data-page="work"] .z-section-search .z-search__select {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(20, 24, 40, 0.1);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
}

body[data-page="work"] .z-section-search .z-search__submit {
  width: 132px;
  min-width: 132px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  justify-self: end;
}

body[data-page="work"] .z-section-search .z-search__input::placeholder {
  color: #7b859b;
}

body[data-page="work"] .z-section-search .z-search__input:focus,
body[data-page="work"] .z-section-search .z-search__input:focus-visible,
body[data-page="work"] .z-section-search .z-search__select:focus,
body[data-page="work"] .z-section-search .z-search__select:focus-visible,
body[data-page="work"] .z-section-search .z-search__submit:focus,
body[data-page="work"] .z-section-search .z-search__submit:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.55);
  outline-offset: 2px;
}

body[data-page="work"] .z-section-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page="work"] .z-section-quick > button,
body[data-page="work"] .z-section-quick > a {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  line-height: 1;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body[data-page="work"] .z-section-hero__media {
  position: relative;
  min-height: var(--hero-media-min-h);
  border-radius: 16px;
  overflow: hidden;
  background-image: var(--hero-media-overlay), var(--hero-media-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

body[data-page="work"] .z-section-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

body[data-page="work"] .z-section-hero__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: grid;
  gap: 3px;
  max-width: 235px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
  font-size: 13px;
  line-height: 1.35;
}

body[data-page="work"] .u2-top .z-work-hero.z-section-hero {
  background: #fff;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.96fr);
  gap: clamp(18px, 2vw, 24px);
}

body[data-page="work"] .u2-top .z-work-hero .z-section-hero__media {
  min-height: var(--hero-media-min-h);
  max-height: 420px;
  aspect-ratio: 16 / 10;
  background-image: var(--hero-media-image);
  background-size: cover;
  background-position: 45% 50% !important;
  background-repeat: no-repeat;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (max-width: 1536px) and (min-width: 1281px) {
  body[data-page="work"] .u2-top .z-work-hero.z-section-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  }
}

body[data-page="work"] .u2-top .z-work-hero .z-section-hero__media::after {
  display: none;
}

body[data-page="work"] .z-section-title {
  margin: 0;
  font-size: var(--section-title-size);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body[data-page="work"] .z-section-steps {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(185px, 1fr));
  gap: 10px;
}

body[data-page="work"] .z-step-card {
  min-height: var(--step-min-h);
  padding: 14px;
  display: flex;
  flex-direction: column;
  background: var(--step-bg);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
}

body[data-page="work"] .z-step-card [class$="__num"] {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #27344f;
  background: #fff;
}

body[data-page="work"] .z-step-card__title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

body[data-page="work"] .z-step-card__desc {
  margin: 0;
  font-size: 16px;
  color: #5b657b;
  line-height: 1.4;
}

body[data-page="work"] .z-section-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 12px;
}

body[data-page="work"] .z-section-toolbar .z-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page="work"] .z-section-toolbar .z-pill {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  line-height: 1;
}

body[data-page="work"] .z-section-toolbar .z-sort {
  height: 38px;
  min-width: 220px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #fff;
  padding: 0 10px;
}

body[data-page="work"] .z-section-rail-card {
  padding: 14px;
}

body[data-page="work"] .z-section-rail-title {
  margin: 0 0 10px;
  font-size: var(--rail-title-size);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

body[data-page="work"] .u2-sources {
  --u2-sources-max-h: clamp(480px, calc(100vh - 168px), 720px);
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(20, 24, 40, 0.08);
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 24, 40, 0.08);
  overflow: hidden;
  height: auto !important;
  max-height: var(--u2-sources-max-h);
  display: flex;
  flex-direction: column;
}

body[data-page="work"] .u2-sources__head {
  padding: 14px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(20, 24, 40, 0.06);
  flex: 0 0 auto;
}

body[data-page="work"] .u2-sources .z-section-rail-title {
  margin: 0;
  font-size: clamp(24px, 1.9vw, 30px);
  line-height: 1.1;
}

body[data-page="work"] .u2-sources__body {
  padding: 12px 12px 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  max-height: calc(var(--u2-sources-max-h) - 56px);
}

body[data-page="work"] .z-work-hero__media.z-section-hero__media {
  right: auto;
  top: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: var(--hero-media-min-h);
  border-radius: 16px;
  background-position: center 42%;
}

@media (max-width: 1280px) {
  body[data-page="work"] .z-section-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="work"] .u2-top__grid {
    grid-template-columns: minmax(0, 1fr) 332px;
  }

  body[data-page="work"] .z-section-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  body[data-page="work"] .z-section-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  body[data-page="work"] .z-section-search .z-search__input {
    grid-column: 1 / -1;
  }

  body[data-page="work"] .z-section-search .z-search__submit {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
}

@media (max-width: 920px) {
  body[data-page="work"] .u2-top__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body[data-page="work"] .u2-top__aside {
    position: static;
    top: auto;
  }

  body[data-page="work"] .z-section-page {
    --hero-pad: 18px;
    --section-pad: 14px;
    --hero-media-min-h: 230px;
    --section-title-size: 28px;
  }

  body[data-page="work"] .u2-top .z-work-hero.z-section-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-page="work"] .u2-top .z-work-hero .z-section-hero__left {
    max-width: 100%;
  }

  body[data-page="work"] .u2-top .z-work-hero .z-section-hero__media {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 220px;
    aspect-ratio: auto;
    background-position: center 36% !important;
  }

  body[data-page="work"] .z-section-hero {
    grid-template-columns: 1fr;
  }

  body[data-page="work"] .z-section-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  body[data-page="work"] .z-section-search .z-search__icon {
    display: none;
  }

  body[data-page="work"] .z-section-search .z-search__input,
  body[data-page="work"] .z-section-search .z-search__select,
  body[data-page="work"] .z-section-search .z-search__submit {
    width: 100%;
    min-width: 0;
    height: 42px;
  }

  body[data-page="work"] .z-section-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="work"] .z-section-rail {
    grid-template-columns: 1fr;
  }

  body[data-page="work"] .u2-sources {
    max-height: none;
  }

  body[data-page="work"] .u2-sources__body {
    max-height: none;
    overflow: visible;
  }

  body[data-page="work"] .z-section-toolbar .z-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body[data-page="work"] .z-section-toolbar .z-sort {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  body[data-page="work"] .z-section-page {
    --hero-title-size: clamp(34px, 12vw, 44px);
    --hero-desc-size: 20px;
    --section-title-size: 24px;
  }

  body[data-page="work"] .z-section-steps {
    grid-template-columns: 1fr;
  }

  body[data-page="work"] .z-section-search .z-search__input,
  body[data-page="work"] .z-section-search .z-search__select,
  body[data-page="work"] .z-section-search .z-search__submit {
    height: 40px;
  }

  body[data-page="work"] .z-section-hero__badge {
    max-width: 210px;
    font-size: 12px;
  }

  body[data-page="work"] .u2-sources__head {
    padding: 12px 12px 8px;
  }

  body[data-page="work"] .u2-sources__body {
    padding: 10px 10px 12px;
  }
}

@media (max-width: 768px) {
  body[data-page="work"] .z-work-hero .z-section-search .z-search__select {
    display: none !important;
  }

  body[data-page="work"] .z-work-hero .z-section-search .z-search__input,
  body[data-page="work"] .z-work-hero .z-section-search .z-search__submit {
    width: 100%;
    min-width: 0;
  }

  body[data-page="work"] .u2-top__aside {
    display: none !important;
  }
}

.z-work-grid {
  padding: 18px;
}

.z-work-grid .z-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.z-work-grid .z-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  width: 100%;
  justify-self: stretch;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  padding: 14px;
  gap: 10px;
}

.z-work-grid .z-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.1);
}

.z-work-grid .z-card::before {
  content: "";
  display: block;
  margin: -14px -14px 0;
  min-height: clamp(220px, 21vw, 280px);
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #e5efff 0%, #f5f8ff 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: none;
}

.z-work-grid .z-card[data-title*="eures"]::before {
  background-image: url("../../img/work/EURES.jpg");
}

.z-work-grid .z-card[data-title*="bundesagentur"]::before {
  background-image: url("../../img/work/BundesagenturfurArbeit.jpg");
}

.z-work-grid .z-card[data-title*="europass"]::before {
  background-image: url("../../img/work/Europass.png");
}

.z-work-grid .z-card[data-title*="make it in germany"]::before {
  background-image: url("../../img/work/MakeitinGermanyWorkinginGermany.webp");
}

.z-work-grid .z-card[data-title*="ba jobb"]::before {
  background-image: url("../../img/work/BAJOBBORSE.jpg");
}

.z-work-grid .z-card[data-title*="berufenet"]::before {
  background-image: url("../../img/work/berufenet.jpg");
}

.z-work-grid .z-card[data-title*="anerkennung"]::before {
  background-image: url("../../img/work/AnerkennunginDeutschland.jpg");
}

.z-work-grid .z-card[data-title*="linkedin"]::before {
  background-image: url("../../img/work/LinkedIn.jpg");
}

.z-work-grid .z-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.z-work-grid .z-card__pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.z-work-grid .z-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 999px;
  background: #f9fafb;
  color: #4b5563;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.z-work-grid .z-chip--cat {
  background: #f3f4f6;
}

.z-work-grid .z-chip--reco {
  background: #fff6d8;
  border-color: #f0ce6b;
  color: #6d5208;
}

.z-work-grid .z-card__when {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.z-work-grid .z-card__when strong {
  color: #111827;
}

.z-work-grid .z-card__actions,
.z-work-grid .z-card__links {
  margin-top: auto;
}

.z-work-grid .z-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #1b243d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 52px;
}

.z-work-grid .z-card__desc {
  margin: 0;
  color: #5b657b;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.z-work-grid .z-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.z-work-grid .z-card__metaItem {
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 10px;
  background: #f9fafb;
  padding: 8px;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.z-work-grid .z-card__metaLabel {
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
}

.z-work-grid .z-card__metaValue {
  font-size: 13px;
  line-height: 1.2;
}

.z-work-grid .z-card__notice {
  border: 1px solid rgba(245, 200, 75, 0.65);
  border-radius: 12px;
  background: #fff9e7;
  color: #5b4300;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.z-work-grid .z-card__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.z-work-grid .z-card__actions .z-btn {
  height: 36px;
  font-size: 13px;
  padding: 0 12px;
  border-radius: 10px;
}

.z-work-grid .z-card__guideBtn {
  border-color: rgba(245, 200, 75, 0.8);
  background: #fffdf6;
}

.z-work-grid .z-card__guideBtn.is-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.z-work-filters__list {
  display: grid;
  gap: 8px;
}

.z-work-filter-row {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.z-work-filter-row span:first-child {
  flex: 1;
  min-width: 0;
}

.z-work-filter-row span:last-child {
  flex: 0 0 auto;
}

.z-work-filter-row:hover,
.z-work-filter-row:focus-visible {
  border-color: rgba(17, 24, 39, 0.2);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.z-work-sources__list {
  display: grid;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.z-work-source {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 10px;
  min-height: 0;
}

.z-work-source strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  color: #1b243d;
  overflow-wrap: anywhere;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.z-work-source p {
  margin: 6px 0 0;
  color: #5b657b;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.z-work-source__tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.z-work-source__tags span {
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #f8fafc;
  font-size: 11px;
  color: #4b5563;
  font-weight: 600;
  padding: 3px 8px;
}

.z-work-source .z-linkbtn {
  justify-self: start;
  min-height: 34px;
  min-width: 150px;
  justify-content: center;
}

@media (max-width: 920px) {
  .z-work-grid .z-cards {
    grid-template-columns: 1fr;
  }

  .z-work-grid .z-card {
    width: 100%;
    min-height: 0;
  }

  .z-work-grid .z-card__meta {
    grid-template-columns: 1fr;
  }

  .z-work-grid .z-card::before {
    min-height: 210px;
  }

  .z-work-grid .z-card__head {
    flex-direction: column;
  }

  .z-work-grid .z-card__when {
    white-space: normal;
  }

  .z-work-grid .z-card__actions .z-btn {
    width: 100%;
  }
}
