/* Projekte page: global Header, Direct Contacts and Footer use styles.css. */
.projekte-hero :where(h1, p), .projekte-gallery :where(h2, p),
.projekte-references :where(h2, p) { margin: 0; }
.projekte-hero { height: 290px; background: white; }
.projekte-hero-inner { position: relative; max-width: 1440px; height: 100%; margin: 0 auto; }
.projekte-eyebrow { position: absolute; top: 56px; left: 72px; font-size: 15px; font-weight: 500; line-height: 22px; }
.projekte-hero h1 { position: absolute; top: 98px; left: 72px; max-width: 1100px; font-size: 62px; font-weight: 900; line-height: 70px; }
.projekte-intro { position: absolute; top: 196px; left: 72px; width: 960px; font-size: 18px; line-height: 30px; color: #6e8192; }

.projekte-gallery { height: 1620px; padding: 40px 72px; background: white; }
.projekte-grid { display: grid; grid-template-columns: repeat(3, 400px); grid-auto-rows: 480px; gap: 50px 48px; max-width: 1296px; margin: 0 auto; }
.projekte-card { position: relative; display: block; height: 480px; color: var(--ao-blue); cursor: pointer; border-radius: 22px; }
.projekte-card::before { content: ""; position: absolute; inset: -5px; z-index: 0; border-radius: 22px; background: var(--ao-light-blue); opacity: 0; transition: opacity 200ms ease-out; }
.projekte-visual { position: absolute; top: 12px; left: 0; width: 100%; height: 264px; overflow: hidden; border-radius: 22px; }
.projekte-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.projekte-visual-scherzer img { position: absolute; top: -3.44%; left: .08%; height: 107.13%; object-fit: fill; }
.projekte-category { position: absolute; top: 30px; left: 24px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 15px; background: var(--ao-orange); color: white; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.projekte-category-1, .projekte-category-4, .projekte-category-8 { width: 219.2px; }
.projekte-category-2 { width: 236.4px; }
.projekte-category-3, .projekte-category-6, .projekte-category-7 { width: 210.6px; }
.projekte-category-5 { width: 184.8px; }
.projekte-category-9 { width: 193.4px; }
.projekte-card h2 { position: absolute; top: 292px; left: 0; width: 100%; font-size: 24px; font-weight: 700; line-height: 31px; transition: transform 200ms ease-out; }
.projekte-description { position: absolute; top: 334px; left: 0; width: calc(100% - 8px); font-size: 15px; line-height: 24px; color: #6e8192; }
.projekte-case-link { position: absolute; top: 438px; left: 0; width: 180px; font-size: 14px; font-weight: 600; line-height: 22px; white-space: pre-wrap; transition: transform 200ms ease-out; }
.projekte-card:is(:hover, :focus-visible)::before { opacity: 1; }
.projekte-card:is(:hover, :focus-visible) h2 { transform: translateY(-4px); }
.projekte-card:is(:hover, :focus-visible) .projekte-case-link { transform: translateX(8px); }
.projekte-card:focus-visible { outline: 2px solid var(--ao-orange); outline-offset: 7px; }

.projekte-references { height: 430px; padding: 44px 76px 30px; background: var(--ao-light-blue); }
.projekte-references-inner { max-width: 1288px; margin: 0 auto; }
.projekte-references-eyebrow { height: 20px; color: var(--ao-orange); font-size: 13px; font-weight: 600; line-height: 18px; }
.projekte-references h2 { max-width: 1000px; margin-top: 12px; font-size: 48px; font-weight: 900; line-height: 58px; }
.projekte-references-intro { max-width: 1050px; height: 60px; margin-top: 8px; font-size: 18px; line-height: 30px; color: #6e8192; }
.projekte-logo-grid { display: grid; grid-template-columns: repeat(4, 240px); justify-content: space-between; gap: 30px 0; margin-top: 28px; }
.projekte-reference-logo { width: 240px; height: 70px; opacity: .88; }
.projekte-reference-logo img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform var(--ao-hover-normal) ease-out; }
.projekte-reference-logo:hover img { transform: scale(1.06); }

@media (max-width: 1399px) {
  .projekte-hero-inner { margin: 0 48px; }
  .projekte-eyebrow, .projekte-hero h1, .projekte-intro { left: 0; }
  .projekte-hero h1 { max-width: 100%; font-size: 56px; line-height: 64px; }
  .projekte-intro { width: min(960px, 100%); }
  .projekte-gallery { height: auto; padding: 40px 48px; }
  .projekte-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 40px 32px; }
  .projekte-card { display: flex; flex-direction: column; height: auto; min-height: 480px; padding: 12px 0 20px; }
  .projekte-visual { position: relative; top: auto; left: auto; height: auto; aspect-ratio: 400 / 264; }
  .projekte-visual img { position: absolute; inset: 0; }
  .projekte-visual-scherzer img { inset: auto; top: -3.44%; left: .08%; }
  .projekte-category { max-width: calc(100% - 48px); }
  .projekte-card h2, .projekte-description, .projekte-case-link { position: relative; top: auto; left: auto; width: 100%; }
  .projekte-card h2 { margin-top: 16px; font-size: 22px; line-height: 30px; }
  .projekte-description { margin-top: 11px; }
  .projekte-case-link { margin-top: auto; padding-top: 28px; }
  .projekte-references { height: auto; padding: 44px 48px 30px; }
  .projekte-references h2 { font-size: 42px; line-height: 52px; }
  .projekte-references-intro { height: auto; }
  .projekte-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
  .projekte-reference-logo { width: 100%; max-width: 240px; justify-self: center; }
}
@media (max-width: 1100px) {
  .projekte-hero { height: auto; padding: 44px 48px 28px; }
  .projekte-hero-inner { margin: 0; }
  .projekte-eyebrow, .projekte-hero h1, .projekte-intro { position: static; }
  .projekte-hero h1 { margin-top: 20px; font-size: 48px; line-height: 56px; }
  .projekte-intro { margin-top: 20px; }
  .projekte-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projekte-card { min-height: 460px; }
  .projekte-references h2 { font-size: 38px; line-height: 46px; }
  .projekte-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .projekte-hero { padding: 40px 28px 24px; }
  .projekte-gallery { padding: 32px 28px 40px; }
  .projekte-grid { gap: 32px 28px; }
  .projekte-references { padding: 40px 28px 32px; }
}
@media (max-width: 600px) {
  .projekte-hero { padding: 36px 24px 24px; }
  .projekte-eyebrow { font-size: 13px; line-height: 20px; }
  .projekte-hero h1 { margin-top: 16px; font-size: 38px; line-height: 44px; }
  .projekte-intro { margin-top: 18px; font-size: 16px; line-height: 26px; }
  .projekte-gallery { padding: 24px 24px 36px; }
  .projekte-grid { max-width: 400px; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .projekte-card { min-height: 0; }
  .projekte-card h2 { font-size: 22px; line-height: 29px; }
  .projekte-references { padding: 36px 24px; }
  .projekte-references h2 { font-size: 32px; line-height: 39px; }
  .projekte-references-intro { font-size: 16px; line-height: 26px; }
  .projekte-logo-grid { gap: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .projekte-card::before, .projekte-card h2, .projekte-case-link, .projekte-reference-logo img { transition: none; }
}
