:root {
  --bg: #f4f0e8;
  --surface: #ffffff;
  --surface-2: #ebe4d8;
  --ink: #111827;
  --muted: #667085;
  --line: rgba(17, 24, 39, .11);
  --gold: #c99a55;
  --gold-2: #e6c98a;
  --dark: #0c111d;
  --dark-2: #151c2d;
  --radius: 28px;
  --shadow: 0 28px 90px rgba(12, 17, 29, .20);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.section { padding: 104px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(12,17,29,.78);
  color: #fff;
  backdrop-filter: blur(18px);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: 180px;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand small {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-text { display: block; font-size: 1.05rem; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.footer-logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: 160px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,.78);
  font-size: .92rem;
  font-weight: 750;
}

.nav-links a {
  transition: color .2s ease, opacity .2s ease;
}
.nav-links a:hover { color: var(--gold-2); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}
.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;
}

.premium-hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,17,29,.92) 0%, rgba(12,17,29,.75) 42%, rgba(12,17,29,.28) 100%),
    linear-gradient(180deg, rgba(12,17,29,.16), rgba(12,17,29,.72));
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(1.04);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 62px;
  align-items: end;
  padding-top: 60px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #9b6d31;
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--gold-2); }

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

h1 {
  max-width: 920px;
  margin-bottom: 26px;
  font-size: clamp(3.3rem, 7.2vw, 7.4rem);
  line-height: .88;
  letter-spacing: -.082em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.4vw, 4.4rem);
  line-height: .95;
  letter-spacing: -.064em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
  letter-spacing: -.025em;
}

.hero-lead {
  max-width: 730px;
  color: rgba(255,255,255,.76);
  font-size: clamp(1.06rem, 1.7vw, 1.26rem);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, #f5d99f, var(--gold));
  box-shadow: 0 22px 48px rgba(201,154,85,.34);
}
.btn-glass {
  color: #fff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(14px);
}
.btn-outline {
  color: var(--dark);
  background: transparent;
  border: 1px solid rgba(17,24,39,.18);
}

.hero-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  background: rgba(255,255,255,.10);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.hero-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-2);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-card strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
  margin-bottom: 14px;
}
.hero-card p {
  color: rgba(255,255,255,.72);
  margin-bottom: 18px;
}
.hero-card a {
  display: block;
  padding: 12px 0;
  color: #fff;
  font-weight: 850;
  border-top: 1px solid rgba(255,255,255,.14);
}

.quick-stats {
  padding: 32px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
  border: 1px solid var(--line);
}
.stats div {
  padding: 30px;
  background: #fff;
}
.stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2.18rem;
  line-height: 1;
  letter-spacing: -.06em;
}
.stats span { color: var(--muted); font-weight: 750; }

.intro-section {
  background:
    radial-gradient(circle at 10% 12%, rgba(201,154,85,.18), transparent 30%),
    var(--bg);
}
.intro-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.intro-grid p, .section-heading p, .contact-grid p {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 44px;
}
.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.service-section { background: #fff; }
.premium-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.premium-service {
  position: relative;
  min-height: 272px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, #fff, #faf7f0);
  box-shadow: 0 18px 48px rgba(12,17,29,.07);
}
.premium-service::before {
  content: "";
  position: absolute;
  inset: auto 22px 0 22px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.premium-service span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 16px;
  color: #111827;
  background: linear-gradient(135deg, #f5d99f, var(--gold));
  font-weight: 950;
}
.premium-service p { color: var(--muted); margin-bottom: 0; }

.dark-feature {
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(201,154,85,.20), transparent 26%),
    linear-gradient(135deg, var(--dark), var(--dark-2));
}
.dark-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: start;
}
.quality-list {
  display: grid;
  gap: 16px;
}
.quality-list > div {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.quality-list strong {
  color: var(--gold-2);
  font-size: .82rem;
}
.quality-list p {
  color: rgba(255,255,255,.68);
  margin-bottom: 0;
}

.references-section { background: #fff; }
.portfolio-block { padding-top: 42px; }
.portfolio-block + .portfolio-block { padding-top: 92px; }
.portfolio-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}
.portfolio-title > div { max-width: 820px; }
.portfolio-title h2 { font-size: clamp(2rem, 3.2vw, 3.35rem); }

.portfolio-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #8b5c20;
  background: rgba(201,154,85,.13);
  font-size: .84rem;
  font-weight: 900;
  white-space: nowrap;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 16px;
}
.masonry-grid.compact { grid-auto-rows: 260px; }

.gallery-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #ece7dc;
  box-shadow: 0 18px 44px rgba(12,17,29,.12);
}
.gallery-card.wide { grid-column: span 2; }
.gallery-card.tall { grid-row: span 2; }
.image-button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}
.gallery-card:hover img {
  transform: scale(1.04);
  filter: contrast(1.04);
}
.gallery-card figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 13px 15px;
  color: #fff;
  background: rgba(12,17,29,.78);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  font-weight: 850;
}

.process-section {
  background:
    linear-gradient(180deg, #fff, var(--bg));
}
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.timeline article {
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(12,17,29,.07);
}
.timeline span {
  color: #9b6d31;
  font-size: .82rem;
  font-weight: 950;
}
.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(201,154,85,.18), transparent 27%),
    linear-gradient(180deg, var(--bg), #fff);
}
.contact-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 64px;
  align-items: start;
}
.contact-details {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}
.contact-details a,
.contact-details span {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 850;
}
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.download-row a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #8b5c20;
  background: rgba(201,154,85,.13);
  font-size: .9rem;
  font-weight: 900;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 30px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 850;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 14px 15px;
  font: inherit;
  color: var(--ink);
  background: #fdfbf7;
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,154,85,.16);
}
.contact-form button {
  grid-column: 1 / -1;
  justify-self: start;
}

.footer {
  padding: 36px 0;
  color: rgba(255,255,255,.72);
  background: #070b13;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .7fr;
  gap: 26px;
}
.footer strong {
  display: block;
  color: #fff;
  margin-bottom: 0;
  font-size: 1.1rem;
}
.footer p { margin: 0; }
.footer span { display: block; margin-bottom: 5px; }

.lightbox {
  width: min(1100px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: #111827;
  color: #fff;
  box-shadow: 0 44px 130px rgba(0,0,0,.50);
}
.lightbox::backdrop {
  background: rgba(7,11,19,.76);
  backdrop-filter: blur(8px);
}
.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #070b13;
}
.lightbox p {
  margin: 0;
  padding: 16px 22px 20px;
  color: rgba(255,255,255,.82);
  font-weight: 750;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.48);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .section { padding: 82px 0; }
  .hero-content,
  .intro-grid,
  .dark-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero-content { align-items: start; }
  .hero-card { max-width: 520px; }
  .stats,
  .premium-services,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1200px); }
  .site-header { background: rgba(12,17,29,.92); }
  .menu-toggle { display: inline-block; }
  .nav-links {
    position: fixed;
    inset: 78px 14px auto 14px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(12,17,29,.96);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(.92);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }
  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 13px; border-radius: 14px; }
  .nav-links a:hover { background: rgba(255,255,255,.08); }
  .brand-logo { height: 36px; max-width: 150px; }
  .brand small { display: none; }
  .premium-hero { min-height: auto; }
  .hero-content { padding-top: 18px; }
  h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  h2 { font-size: clamp(2.1rem, 11vw, 3.3rem); }
  .hero-card { padding: 22px; }
  .stats,
  .premium-services,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-title { display: grid; align-items: start; }
  .masonry-grid,
  .masonry-grid.compact {
    grid-template-columns: 1fr;
    grid-auto-rows: 360px;
  }
  .gallery-card.wide,
  .gallery-card.tall {
    grid-column: auto;
    grid-row: auto;
  }
  .contact-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Logo visibility update */
.brand-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 19px;
  background: linear-gradient(135deg, #ffffff 0%, #f7dfaa 100%);
  box-shadow: 0 18px 46px rgba(201,154,85,.42);
  border: 1px solid rgba(255,255,255,.55);
}

.brand-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 62px;
  object-fit: contain;
}

.hero-card-logo {
  display: block;
  width: auto;
  height: 128px;
  max-width: 170px;
  margin: 0 0 18px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.40));
}

.footer-logo {
  display: block;
  width: auto;
  height: 62px;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.35));
}

@media (max-width: 760px) {
  .brand-logo-plate {
    width: 64px;
    height: 52px;
    border-radius: 16px;
  }

  .brand-logo {
    height: 45px;
    max-width: 52px;
  }

  .hero-card-logo {
    height: 104px;
  }

  .footer-logo {
    height: 50px;
  }
}

/* Gallery subpage */
.gallery-cta-section {
  padding: 72px 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(201,154,85,.16), transparent 30%),
    var(--bg);
}

.gallery-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(12,17,29,.10);
}

.gallery-cta h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  margin-bottom: 12px;
}

.gallery-cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-page-hero {
  min-height: 620px;
  display: flex;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12,17,29,.94), rgba(12,17,29,.58)),
    url("assets/baustelle/facade-finished-apartment-row.jpg") center / cover no-repeat;
}

.gallery-page-hero h1 {
  max-width: 960px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  margin-bottom: 24px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.gallery-page-section {
  background: #fff;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(17,24,39,.13);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: #111827;
  background: linear-gradient(135deg, #f5d99f, var(--gold));
  border-color: transparent;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-page-card {
  position: relative;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #ece7dc;
  box-shadow: 0 18px 44px rgba(12,17,29,.12);
}

.gallery-page-card:nth-child(6n + 1),
.gallery-page-card:nth-child(6n + 4) {
  grid-column: span 2;
  min-height: 390px;
}

.gallery-page-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.gallery-page-card:hover img {
  transform: scale(1.04);
  filter: contrast(1.04);
}

.gallery-page-card figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 13px 15px;
  color: #fff;
  background: rgba(12,17,29,.78);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.gallery-page-card figcaption span {
  display: block;
  margin-bottom: 3px;
  color: var(--gold-2);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-page-card figcaption strong {
  display: block;
  font-size: .98rem;
}

.gallery-page-card.is-hidden {
  display: none;
}

.gallery-contact-strip {
  background:
    radial-gradient(circle at 18% 20%, rgba(201,154,85,.16), transparent 28%),
    var(--bg);
}

@media (max-width: 1020px) {
  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-page-card:nth-child(6n + 1),
  .gallery-page-card:nth-child(6n + 4) {
    grid-column: auto;
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .gallery-cta {
    display: grid;
    padding: 24px;
  }

  .gallery-page-hero {
    min-height: 560px;
  }

  .gallery-page-grid {
    grid-template-columns: 1fr;
  }

  .gallery-page-card,
  .gallery-page-card:nth-child(6n + 1),
  .gallery-page-card:nth-child(6n + 4) {
    grid-column: auto;
    min-height: 360px;
  }
}

/* Fixed separate gallery page + CTA */
.gallery-cta-section {
  padding: 74px 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(201,154,85,.16), transparent 30%),
    var(--bg);
}

.gallery-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(12,17,29,.10);
}

.gallery-cta h2 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  margin-bottom: 12px;
}

.gallery-cta p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-page-hero-fixed {
  min-height: 660px;
  display: flex;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12,17,29,.95), rgba(12,17,29,.62), rgba(12,17,29,.25)),
    url("assets/gallery/kuechen-luxus-marmor-front-01.jpg") center / cover no-repeat;
}

.gallery-page-hero-fixed h1 {
  max-width: 980px;
}

.gallery-page-intro {
  max-width: 1180px;
  margin-bottom: 28px;
}

.gallery-page-intro h2 {
  max-width: 940px;
}

.gallery-page-intro p {
  max-width: 760px;
  color: var(--muted);
}

.fixed-gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-page-card.wide {
  grid-column: span 2;
}

.gallery-page-card img {
  display: block;
}

.gallery-page-card figcaption strong {
  line-height: 1.25;
}

.gallery-page-card[data-category="Küchen Luxus"] figcaption span,
.gallery-page-card[data-category="Badezimmer Premium"] figcaption span {
  color: #f5d99f;
}

@media (max-width: 1020px) {
  .fixed-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-page-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .gallery-cta {
    display: grid;
    padding: 24px;
  }

  .gallery-page-hero-fixed {
    min-height: 560px;
  }

  .fixed-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-page-card.wide {
    grid-column: auto;
  }
}

/* Gallery page without top navigation */
.gallery-page-hero.no-top-nav {
  padding-top: 46px;
}
