/* Shared layout, components, data-driven pages, and responsive defaults. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1d2524;
    --muted: #687271;
    --line: #dde3e1;
    --paper: #f7f8f5;
    --white: #ffffff;
    --accent: #ffd804;
    --accent-2: #ffd804;
    --warm: #ffd804;
    --shadow: 0 20px 70px rgba(29, 37, 36, 0.12);
    --card-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
    max-width: 100%;
}

.site-header {
  position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(247, 248, 245, 0.84);
    border-bottom: 1px solid rgba(221, 227, 225, 0.8);
    backdrop-filter: blur(18px);
    transition: top 260ms ease, left 260ms ease, right 260ms ease, padding 260ms ease, border-radius 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.site-header.is-scrolled {
  top: 14px;
    left: clamp(12px, 3vw, 42px);
    right: clamp(12px, 3vw, 42px);
    padding-top: 12px;
    padding-bottom: 12px;
    border: 1px solid rgba(221, 227, 225, 0.82);
    border-radius: 28px;
    background: rgba(247, 248, 245, 0.9);
    box-shadow: 0 18px 48px rgba(29, 37, 36, 0.16);
}

.brand {
  display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 720;
}

.brand img {
  width: 42px;
    height: 42px;
    object-fit: contain;
}

.site-header nav {
  display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.site-header nav a {
  position: relative;
    padding: 9px 11px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    transition: color 180ms ease, transform 180ms ease;
}

.site-header nav a::after {
  content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 5px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--ink);
}

.site-header nav a:hover {
  transform: translateY(-1px);
}

.site-header nav a:hover::after,
.site-header nav a[aria-current]::after {
  transform: scaleX(1);
}

.site-nav {
  display: none;
}

.hero {
  min-height: 94vh;
    display: grid;
    align-items: end;
    padding: 172px clamp(18px, 5vw, 72px) 56px;
    position: relative;
    overflow: hidden;
    background: #dfe4df;
}

.hero-media {
  position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(247, 248, 245, 0.94), rgba(247, 248, 245, 0.56) 45%, rgba(247, 248, 245, 0.18)),
      var(--home-hero-image) center / cover;
    transform: scale(1.02);
    filter: grayscale(1) contrast(1.05);
    animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
    width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
    color: var(--accent-2);
    text-transform: lowercase;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
    font-size: clamp(46px, 8vw, 112px);
    font-weight: 560;
    line-height: 0.9;
    letter-spacing: 0;
}

.hero-title {
  max-width: 980px;
    font-weight: 430;
    font-size: clamp(52px, 6.4vw, 92px);
}

.hero-title span {
  display: block;
    font-weight: inherit;
    overflow-wrap: normal;
    white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 58px);
    line-height: 1;
    letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: 0;
}

.lead {
  max-width: 620px;
    color: #3f4948;
    font-size: clamp(19px, 2vw, 26px);
}

.hero-actions {
  display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
  position: relative;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
    font-weight: 760;
    overflow: hidden;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button::before {
  content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(29, 37, 36, 0.18);
}

.button:hover::before {
  transform: translateY(0);
}

.button.primary {
  background: var(--ink);
    color: var(--white);
}

.button.secondary {
  background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

.button.secondary::before {
  background: var(--ink);
}

.button.primary:hover {
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--ink);
    border-color: var(--accent);
    color: var(--white);
}

.scroll-cue {
  position: absolute;
    left: 50%;
    bottom: 24px;
    width: 30px;
    height: 48px;
    border: 1px solid rgba(29, 37, 36, 0.4);
    border-radius: 999px;
    transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
    top: 9px;
    left: 50%;
    width: 4px;
    height: 9px;
    border-radius: 999px;
    background: var(--ink);
    transform: translateX(-50%);
    animation: scrollHint 1400ms ease-in-out infinite;
}

.section {
  padding: clamp(60px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
    grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
    gap: clamp(24px, 6vw, 84px);
    background: var(--ink);
    color: var(--white);
}

.intro p {
  max-width: 760px;
    color: #d6dddb;
    font-size: 20px;
}

.intro h2,
.section-head h2,
.contact > div > h2 {
  font-weight: 620;
}

.section-head {
  display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.service-grid {
  display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-grid article,
.service-card {
  position: relative;
    min-height: 280px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.48);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    transform: translateY(0);
    transform-origin: center bottom;
    transition: transform 260ms ease, background 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
    will-change: transform;
}

.service-grid article::before,
.service-card::before {
  content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms ease;
}

.service-grid article::after,
.service-card::after {
  content: "";
    position: absolute;
    right: 24px;
    bottom: 22px;
    width: 34px;
    height: 34px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.service-grid article:hover,
.service-card:hover,
.service-card:focus-visible {
  z-index: 1;
    background: var(--white);
    border-color: rgba(29, 37, 36, 0.2);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    animation: competenceHover 520ms ease both;
}

.service-grid article:hover::before,
.service-card:hover::before,
.service-card:focus-visible::before {
  transform: scaleX(1);
}

.service-grid article:hover::after,
.service-card:hover::after,
.service-card:focus-visible::after {
  opacity: 0.24;
    transform: translate(0, 0);
}

.service-grid article h3,
.service-grid article p,
.service-grid article span,
.service-card h3,
.service-card p,
.service-card span {
  position: relative;
    transition: transform 220ms ease, color 220ms ease;
}

.service-grid article:hover h3,
.service-card:hover h3,
.service-card:focus-visible h3 {
  transform: translateY(-4px);
}

.service-grid article:hover p,
.service-card:hover p,
.service-card:focus-visible p {
  transform: translateY(-2px);
}

.service-grid span {
  display: inline-block;
    margin-bottom: 68px;
    color: var(--warm);
    font-weight: 800;
}

.service-grid p,
.project-body p {
  color: var(--muted);
}

.featured {
  background: #eef1ed;
}

.project-strip,
.activity-grid {
  display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
  display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 32px rgba(29, 37, 36, 0.06);
    color: var(--ink);
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-image {
  display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #d7ddda;
}

.project-image img {
  width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 220ms ease, transform 220ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-body {
  display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.project-details {
  display: grid;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 12px;
    font-size: 13px;
}

.detail-row span {
  color: var(--muted);
}

.detail-row strong {
  min-width: 0;
    text-align: right;
    font-weight: 720;
}

.text-link {
  color: var(--accent-2);
    text-decoration: none;
    font-weight: 800;
    transition: color 180ms ease;
}

.text-link:hover {
  text-decoration: underline;
}

.contact {
  display: grid;
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    gap: clamp(24px, 6vw, 84px);
}

.contact-grid {
  display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

address,
.mail-panel,
.contact-card {
  display: grid;
    gap: 10px;
    min-height: 190px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    font-style: normal;
}

.project-card,
address,
.mail-panel,
.contact-card,
.job-card,
.contact-page-grid article,
.press-item,
.current-card {
  position: relative;
    overflow: hidden;
    transform: translateY(0);
    transform-origin: center bottom;
    transition: transform 260ms ease, background 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
    will-change: transform;
}

.project-card::before,
address::before,
.mail-panel::before,
.contact-card::before,
.job-card::before,
.contact-page-grid article::before,
.press-item::before,
.current-card::before {
  content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms ease;
}

.project-card:hover,
address:hover,
.mail-panel:hover,
.contact-card:hover,
.job-card:hover,
.contact-page-grid article:hover,
.press-item:hover,
.current-card:hover {
  border-color: rgba(29, 37, 36, 0.28);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
}

.project-card:hover::before,
address:hover::before,
.mail-panel:hover::before,
.contact-card:hover::before,
.job-card:hover::before,
.contact-page-grid article:hover::before,
.press-item:hover::before,
.current-card:hover::before {
  transform: scaleX(1);
}

.mail-panel {
  align-content: space-between;
}

.contact-card h3,
.contact-card p {
  margin: 0;
}

.contact-card h3 {
  font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.12;
}

.contact-card a {
  color: var(--accent-2);
    font-weight: 800;
}

.mail-panel a {
  overflow-wrap: anywhere;
    color: var(--accent-2);
    font-size: 20px;
    font-weight: 800;
}

.subpage-hero {
  display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 40px;
    align-items: end;
    min-height: 460px;
    padding: 192px clamp(18px, 5vw, 72px) 58px;
    background:
      linear-gradient(90deg, rgba(29, 37, 36, 0.9), rgba(29, 37, 36, 0.58)),
      var(--subpage-hero-image, var(--subpage-hero-default)) center / cover;
    color: var(--white);
    filter: grayscale(1);
}

body[data-subpage="aktivitaeten"] {
  --subpage-hero-image: var(--subpage-hero-aktivitaeten);
}

body[data-subpage="aktuelles"] {
  --subpage-hero-image: var(--subpage-hero-aktuelles);
}

body[data-subpage="team"] {
  --subpage-hero-image: var(--subpage-hero-team);
}

body[data-subpage="presse"] {
  --subpage-hero-image: var(--subpage-hero-presse);
}

body[data-subpage="kontakt"] {
  --subpage-hero-image: var(--subpage-hero-kontakt);
}

body[data-subpage="jobs"] {
  --subpage-hero-image: var(--subpage-hero-jobs);
}

body[data-subpage="impressum"] {
  --subpage-hero-image: var(--subpage-hero-impressum);
}

body[data-subpage="impressum"] .subpage-hero {
  background: #e9ecf1;
    color: var(--ink);
}

body[data-subpage="impressum"] .subpage-hero h1 {
  color: var(--ink);
    text-shadow: none;
}

body[data-subpage="aktivitaeten"] .subpage-hero {
  min-height: 360px;
    padding-top: 174px;
    padding-bottom: 46px;
}

.page-hero {
  min-height: 360px;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 112px);
  place-items: center;
  padding: clamp(128px, 18vw, 210px) clamp(18px, 5vw, 72px) clamp(72px, 10vw, 130px);
  background: linear-gradient(135deg, #f5f6f5, #e6ebe7);
}

.not-found-content {
  width: min(100%, 720px);
  padding: clamp(34px, 6vw, 72px);
  border-top: 7px solid var(--bow-yellow, var(--accent));
  background: var(--white);
  box-shadow: var(--shadow);
}

.not-found-content h1 {
  max-width: 12ch;
  margin: 10px 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.92;
  text-transform: lowercase;
}

.not-found-content > p:not(.eyebrow) {
  max-width: 54ch;
  margin: 0;
  font-size: clamp(18px, 2vw, 23px);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin-top: 34px;
}

.subpage-hero p {
  color: #e5ece9;
    font-size: 19px;
}

.subpage-hero h1,
.activity-toolbar h2,
.project-card h3,
.page-html h2,
.page-html h3,
.current-card h2,
.press-item h2,
.contact-page-grid h2,
.jobs-hero-panel h2,
.jobs-category h2,
.job-card h3,
.project-copy h1 {
  text-transform: lowercase;
}

.activity-layout {
  display: grid;
    grid-template-columns: minmax(270px, 300px) minmax(0, 1fr);
    gap: 28px;
    padding: 24px clamp(18px, 5vw, 72px) 90px;
}

.filters {
  position: sticky;
    top: 108px;
    align-self: start;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
}

.filter-title {
  margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: lowercase;
}

.filter-list {
  display: grid;
    gap: 6px;
}

.filter-button {
  position: relative;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px 9px 24px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-align: left;
    transition: color 180ms ease, transform 180ms ease;
}

.filter-button::after {
  content: "\2192";
    position: absolute;
    left: 0;
    top: 50%;
    color: var(--accent);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    transform: translate(-8px, -50%);
    transition: opacity 180ms ease, transform 180ms ease;
}

.filter-button:hover,
.filter-button.active {
  color: var(--ink);
}

.filter-button.active {
  background: transparent;
    border-color: transparent;
}

.filter-button:hover {
  transform: translateY(-1px);
}

.filter-button:hover::after,
.filter-button.active::after {
  opacity: 1;
    transform: translate(0, -50%);
}

.activity-main {
  min-width: 0;
}

.activity-toolbar {
  display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 8px;
}

.activity-toolbar > div:first-child {
  min-width: 0;
}

.activity-intro {
  max-width: 62ch;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.find-filters[hidden] {
  display: none;
}

.find-filters,
.find-filter-list {
  min-width: 0;
}

.find-filter-button {
  font: inherit;
  cursor: pointer;
}

.activity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loading,
.error,
.empty {
  grid-column: 1 / -1;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
  color: var(--muted);
}

.skeleton-screen {
  grid-column: 1 / -1;
  width: 100%;
}

.skeleton-block {
  display: block;
  overflow: hidden;
  background: linear-gradient(100deg, #ecefed 20%, #f7f8f7 38%, #ecefed 56%);
  background-size: 220% 100%;
  border-radius: 3px;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

.skeleton-line {
  width: 100%;
  height: 13px;
}

.skeleton-line-title {
  width: 68%;
  height: 24px;
}

.skeleton-line-wide {
  width: 88%;
}

.skeleton-line-medium {
  width: 62%;
}

.skeleton-line-short {
  width: 36%;
}

.skeleton-activities,
.skeleton-current {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.skeleton-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.skeleton-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.skeleton-card-copy,
.skeleton-project-copy {
  display: grid;
  gap: 14px;
}

.skeleton-card-copy {
  padding: 22px;
}

.skeleton-copy {
  display: grid;
  gap: 16px;
}

.skeleton-copy {
  max-width: 880px;
}

.skeleton-copy-space {
  height: clamp(160px, 24vw, 300px);
  margin: 12px 0;
}

.skeleton-project {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.skeleton-back {
  grid-column: 1 / -1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.skeleton-project-gallery {
  display: grid;
  gap: 14px;
}

.skeleton-project-main {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.skeleton-project-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.skeleton-project-thumbs .skeleton-block {
  aspect-ratio: 1;
}

.skeleton-project-copy {
  padding-top: 6px;
}

.skeleton-project-title {
  width: 90%;
  height: clamp(54px, 7vw, 96px);
}

.skeleton-profile {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.skeleton-profile-media {
  width: 100%;
  aspect-ratio: 16 / 7;
}

@keyframes skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block {
    animation: none;
  }
}

@media (max-width: 760px) {
  .skeleton-activities,
  .skeleton-current,
  .skeleton-project {
    grid-template-columns: 1fr;
  }

  .skeleton-back {
    grid-column: 1;
  }

  .skeleton-project-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skeleton-profile-media {
    aspect-ratio: 4 / 3;
  }
}

.error {
  border-color: #d5a49a;
    color: #8c3b2b;
}

.site-footer {
  display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 5vw, 72px);
    background: var(--ink);
    color: var(--white);
}

.footer-brand {
  display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.footer-brand img {
  width: 28px;
    height: 28px;
    object-fit: contain;
    filter: grayscale(1) invert(1) brightness(2.35) contrast(1.15);
    opacity: 0.92;
}

.footer-brand .footer-logo-final {
  display: none;
}

.site-footer nav {
  display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
}

.site-footer a {
  position: relative;
    color: #d8dfdd;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.site-footer nav a {
  padding-bottom: 4px;
}

.site-footer nav a::after {
  content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer nav a:hover {
  transform: translateY(-1px);
}

.site-footer nav a:hover::after {
  transform: scaleX(1);
}

.page-section {
  display: block;
    background: #eef1ed;
    padding-top: clamp(28px, 4vw, 52px);
}

.page-html {
  display: grid;
    gap: 18px;
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 42px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 32px rgba(29, 37, 36, 0.05);
    color: var(--ink);
}

.jobs-overview {
  display: grid;
    gap: 26px;
}

.jobs-hero-panel {
  display: grid;
    gap: 24px;
    align-items: start;
    padding: clamp(22px, 4vw, 34px);
    background: #f7f8f5;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
}

.jobs-hero-panel h2 {
  max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 52px);
}

.jobs-hero-panel p {
  max-width: 86ch;
    margin: 0;
    color: #3f4948;
    font-size: 18px;
}

.jobs-hero-panel p a {
  color: var(--accent);
    font-weight: 850;
    text-decoration: none;
}

.jobs-hero-panel p a:hover {
  text-decoration: underline;
}

.jobs-cta {
  display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: var(--ink);
    border-radius: var(--card-radius);
    color: var(--white);
    text-decoration: none;
}

.jobs-cta span {
  color: #d8dfdd;
    font-weight: 800;
}

.jobs-cta .jobs-cta-email {
  color: var(--accent);
    font-size: 20px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.jobs-category {
  display: grid;
    gap: 12px;
}

.jobs-category h2 {
  margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: lowercase;
}

.jobs-list {
  display: grid;
    gap: 10px;
}

.current-grid {
  display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.current-card {
  display: grid;
    min-height: 100%;
    background: #f7f8f5;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(29, 37, 36, 0.05);
}

.current-card img {
  width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: grayscale(1);
    transition: transform 260ms ease;
}

.current-card:hover img {
  transform: scale(1.04);
}

.current-card-media {
  display: block;
    overflow: hidden;
}

.current-card-body {
  display: grid;
    gap: 9px;
    padding: 16px;
}

.current-card h2 {
  margin: 0;
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.12;
}

.current-card p {
  margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.job-card {
  display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    padding: 18px 58px 18px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 32px rgba(29, 37, 36, 0.05);
    color: var(--ink);
    text-decoration: none;
}

.job-card::after,
.press-item::after {
  content: "\2192";
    position: absolute;
    right: 22px;
    top: 50%;
    color: var(--ink);
    font-size: 26px;
    font-weight: 800;
    opacity: 0;
    transform: translate(-10px, -50%);
    transition: opacity 180ms ease, transform 180ms ease;
}

.job-card:hover::after,
.job-card:focus-visible::after,
.press-item:hover::after,
.press-item:focus-visible::after {
  opacity: 1;
    transform: translate(0, -50%);
}

.job-main {
  display: grid;
    gap: 10px;
    min-width: 0;
}

.job-card h3 {
  margin: 0;
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.2;
}

.job-card p {
  color: var(--muted);
}

.job-meta {
  display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.job-meta span {
  padding: 5px 8px;
    background: #eef1ed;
    border-radius: 999px;
    color: #3f4948;
    font-size: 13px;
    font-weight: 750;
}

.page-html h1,
.page-html h2,
.page-html h3 {
  margin: 18px 0 8px;
}

.page-html h1 {
  display: none;
}

.page-html h2 {
  font-size: clamp(24px, 3vw, 38px);
}

.page-html h3 {
  font-size: clamp(20px, 2vw, 27px);
}

.page-html p {
  max-width: 78ch;
    color: #3f4948;
}

.page-html a {
  color: var(--accent-2);
    font-weight: 800;
}

.page-html img {
  width: min(100%, 720px);
    height: auto;
    border-radius: var(--card-radius);
    filter: grayscale(1);
}

.page-html div:empty {
  display: none;
}

.page-html div {
  min-width: 0;
}

.page-html > div,
.page-html article,
.page-html section {
  display: contents;
}

.page-html ul,
.page-html ol {
  display: grid;
    gap: 10px;
    max-width: 78ch;
    padding-left: 20px;
    color: #3f4948;
}

.page-html .current-grid {
  display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.page-html .current-card {
  display: grid;
    color: var(--ink);
    font-weight: inherit;
    text-decoration: none;
}

.page-html .current-card-body {
  gap: 8px;
    padding: 14px;
}

.page-html .current-card h2 {
  font-size: clamp(17px, 1.45vw, 21px);
}

.page-html .current-card p {
  font-size: 13px;
}

.contact-page-grid,
.press-grid {
  display: grid;
    gap: 16px;
}

.contact-page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-page-grid article,
.press-item {
  display: grid;
    gap: 10px;
    padding: 22px;
    background: #f7f8f5;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    color: var(--ink);
    text-decoration: none;
}

.contact-page-grid h2,
.press-item h2 {
  margin: 0;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.12;
}

.contact-page-grid p,
.press-item p {
  margin: 0;
}

.press-grid {
  grid-template-columns: minmax(0, 1fr);
}

.press-item {
  align-content: space-between;
    min-height: 220px;
    padding-right: 58px;
}

.press-author,
.press-meta {
  color: var(--muted);
    font-size: 14px;
}

.page-html .contact-page-grid,
.page-html .press-grid,
.page-html .jobs-overview,
.page-html .jobs-category,
.page-html .jobs-list {
  display: grid;
}

.page-html .contact-page-grid article,
.page-html .press-item,
.page-html .job-card {
  display: grid;
}

.page-html .press-item {
  color: var(--ink);
    font-weight: inherit;
    text-decoration: none;
}

.page-html .job-card {
  display: flex;
    color: var(--ink);
    font-weight: inherit;
    text-decoration: none;
}

.page-html .jobs-hero-panel {
  display: grid;
}

.page-html .jobs-category h2,
.page-html .job-card h3 {
  margin: 0;
}

.page-html .jobs-category h2 {
  color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    text-transform: lowercase;
}

.page-html .job-card h3 {
  color: var(--ink);
    font-size: clamp(18px, 1.7vw, 23px);
    font-weight: 780;
    line-height: 1.2;
}

.project-detail {
  display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
    padding: 160px clamp(18px, 5vw, 72px) 90px;
}

.project-detail-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-back {
    display: inline-flex;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-back span[aria-hidden="true"] {
  font-size: 24px;
  font-weight: 400;
}

.project-back:hover {
  background: var(--accent);
    border-color: var(--accent);
    transform: translateX(-3px);
}

.project-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-navigation[hidden] {
  display: none;
}

.project-navigation-label {
  margin-right: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.project-navigation-link {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-navigation-link:hover,
.project-navigation-link:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.project-navigation-link:first-of-type:hover {
  transform: translateX(-3px);
}

.project-navigation-link:last-of-type:hover {
  transform: translateX(3px);
}

.project-gallery {
  display: grid;
    gap: 14px;
    align-self: start;
}

.project-image-button {
  display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--card-radius);
    cursor: zoom-in;
    overflow: hidden;
}

.project-image-button--main {
  position: relative;
  touch-action: pan-y;
  user-select: none;
}

.project-gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: none;
  min-width: 52px;
  padding: 5px 9px;
  background: rgba(17, 17, 17, 0.82);
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.project-image-button:focus-visible {
  outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.project-main-image {
  width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--card-radius);
    filter: grayscale(1);
    transition: transform 220ms ease;
}

.project-image-button:hover .project-main-image,
.project-image-button:hover img {
  filter: grayscale(0);
    transform: scale(1.03);
}

.project-thumbs {
  display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.project-thumbs img {
  width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--card-radius);
    filter: grayscale(1);
    transition: transform 220ms ease;
}

.project-copy {
  align-self: start;
}

.project-copy h1 {
  font-size: clamp(42px, 6vw, 86px);
}

/* Use the document's German language for syllable-aware title wrapping. */
.project-card h3,
.project-copy h1,
.current-card h2 {
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-wrap: balance;
}

.project-translation {
  color: var(--muted);
    font-style: italic;
}

.image-lightbox {
  position: fixed;
    z-index: 300;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 54px);
    background: rgba(29, 37, 36, 0.9);
    touch-action: pan-y;
    user-select: none;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: min(100%, 1440px);
    max-height: 88vh;
    border-radius: var(--card-radius);
    filter: none;
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.36);
}

.lightbox-close {
  position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
}

.lightbox-close > span,
.lightbox-close > span::before,
.lightbox-close > span::after {
  position: absolute;
    display: block;
}

.lightbox-close > span {
  top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
}

.lightbox-close > span::before,
.lightbox-close > span::after {
  content: "";
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
    transform-origin: center;
}

.lightbox-close > span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close > span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-close:hover {
  background: var(--accent);
    border-color: var(--accent);
}

.lightbox-nav {
  position: absolute;
    z-index: 1;
    top: 50%;
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 34px;
    font-weight: 320;
    line-height: 1;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    transform: translateY(-50%);
    transition: transform 180ms ease, opacity 180ms ease;
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev {
  left: clamp(8px, 2vw, 28px);
}

.lightbox-next {
  right: clamp(8px, 2vw, 28px);
}

.lightbox-prev:hover,
.lightbox-prev:focus-visible {
  transform: translate(-4px, -50%);
}

.lightbox-next:hover,
.lightbox-next:focus-visible {
  transform: translate(4px, -50%);
}

@media (max-width: 620px) {
  .project-gallery-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .image-lightbox {
    padding-right: 48px;
    padding-left: 48px;
  }

  .lightbox-nav {
    width: 40px;
    height: 48px;
    font-size: 28px;
  }

  .lightbox-prev {
    left: 4px;
  }

  .lightbox-next {
    right: 4px;
  }
}

.image-lightbox img {
  filter: none !important;
    transform: none !important;
}

body[data-subpage="impressum"] .page-html img[src*="IHK_Ausbildungslogo1234"] {
  width: min(314px, 100%);
    max-width: 314px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    filter: none !important;
    transform: none !important;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.4%, -1%, 0);
  }
}

@keyframes scrollHint {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

@keyframes competenceHover {
  0% {
    transform: translateY(0);
  }
  55% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1100px) {
  .service-grid,
  .project-strip,
  .contact-grid,
  .current-grid,
  .page-html .current-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
    .site-header {
    position: fixed;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 16px;
  }
  
    .site-header nav {
    justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        white-space: nowrap;
  }
  
    .site-header nav a {
    padding: 7px 8px;
        font-size: 13px;
  }
  
    .hero {
    min-height: 82vh;
        padding-top: 158px;
  }

  .hero-title span {
    white-space: normal;
  }
  
    .subpage-hero,
  .page-hero {
    padding-top: 174px;
  }
  
    .project-detail {
    padding-top: 158px;
  }
  
    .intro,
  .contact,
  .subpage-hero,
  .activity-layout,
  .project-detail {
    grid-template-columns: 1fr;
  }
  
    .activity-layout {
    padding-top: 18px;
  }
  
    .filters {
    position: static;
  }
  
  .filter-list {
    display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        padding: 0;
        overflow: visible;
  }

  .filter-button {
    flex: 1 1 112px;
    width: auto;
        min-width: 0;
    min-height: 40px;
        padding-right: 10px;
        font-size: 13px;
        white-space: normal;
        overflow-wrap: anywhere;
  }
  
    .activity-toolbar {
    align-items: stretch;
        flex-direction: column;
  }
  
    .activity-grid {
    grid-template-columns: 1fr;
  }
  
    .jobs-hero-panel {
    grid-template-columns: 1fr;
  }
  
    .job-card {
    align-items: stretch;
        flex-direction: column;
  }
  
    .contact-page-grid,
  .press-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .brand img {
    width: 34px;
        height: 34px;
  }
  
    .scroll-cue {
    display: none;
  }
  
    h1 {
    font-size: clamp(36px, 11vw, 42px);
        line-height: 0.95;
        overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .lead {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
        padding: 156px 16px 52px;
  }

  .hero-actions {
    flex-direction: column;
        align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-right: 16px;
        padding-left: 16px;
  }
  
    .service-grid,
  .project-strip,
  .contact-grid,
  .current-grid,
  .page-html .current-grid {
    grid-template-columns: 1fr;
  }
  
    .service-grid article,
  .service-card {
    min-height: auto;
  }
  
    .service-grid span {
    margin-bottom: 28px;
  }
  
    .press-item h2 {
    font-size: 20px;
  }
  
    .press-item {
    min-height: 180px;
  }
  
    .section-head {
    align-items: start;
        flex-direction: column;
  }

  .subpage-hero,
  .page-hero {
    min-height: 270px;
        padding: 156px 16px 34px;
  }

  .activity-layout {
    padding-right: 16px;
        padding-left: 16px;
  }

  .activity-toolbar {
    gap: 10px;
  }

  .activity-toolbar h2 {
    overflow-wrap: anywhere;
  }

  .project-body,
  .page-html,
  .contact-page-grid article,
  .press-item {
    padding: 18px;
  }

  .detail-row {
    grid-template-columns: 1fr;
        gap: 2px;
  }

  .detail-row strong {
    text-align: left;
  }

  .job-card {
    padding-right: 18px;
  }

  .job-card::after,
  .press-item::after {
    display: none;
  }

  .project-detail {
    padding-right: 16px;
        padding-left: 16px;
  }

  .project-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    align-items: flex-start;
        flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
