.p-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  background: var(--c-dark);
  color: #fff;
}
.p-hero__media { position: relative; overflow: hidden; }
.p-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1067;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .p-hero__img { animation: p-hero-zoom 2.4s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes p-hero-zoom { from { transform: scale(1.06); } }
}
.p-hero__media::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  background: linear-gradient(180deg, rgba(10, 14, 20, .6) 0%, rgba(10, 14, 20, 0) 100%);
  pointer-events: none;
}
.p-hero__content {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding-block: 2rem 1.5rem;
  text-align: center;
}
.p-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}
.p-hero h1 span {
  display: block;
  margin-top: .5rem;
  font-size: .5em;
  font-weight: 500;
  letter-spacing: 0;
  opacity: .92;
}
.p-hero .hero__search-slot { width: 100%; max-width: 40rem; text-align: left; }
.p-hero .ac24-facade { height: 54px; border: 0; border-radius: var(--radius-btn); box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .45); }
.p-hero__ctas { justify-content: center; margin-top: 0; }

.p-hero__brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 1.25rem;
  margin-top: .5rem;
}
.p-hero__brands-label { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .02em; }
.p-hero__brands ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; }
.p-hero__brands a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1.1rem .45rem .5rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(10, 14, 20, .35);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.p-hero__brands a:hover { border-color: #fff; background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-2px); }
.p-hero__brands img { width: 2rem; height: 2rem; }

@media (min-width: 56rem) {
  .p-hero { width: 100%; min-height: clamp(38rem, 66.69vw, 64rem); }
  .p-hero__media { position: absolute; inset: 0; z-index: -2; }
  .p-hero__img { height: 100%; aspect-ratio: auto; }
  .p-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 14, 20, .55) 0%, rgba(10, 14, 20, .3) 32%, rgba(10, 14, 20, .12) 58%, rgba(10, 14, 20, .7) 100%);
    pointer-events: none;
  }
  .p-hero__content {
    align-self: start;
    grid-row: 1 / -1;
    max-width: calc(56rem + 2 * var(--gutter));
    padding-block: calc(var(--header-h) + clamp(1.5rem, 4vw, 4rem)) 2rem;
  }
}
@media (max-width: 55.99rem) {
  .p-hero__content { padding-block: 2.25rem 2.5rem; }
  .p-hero__brands { flex-direction: column; width: 100%; }
  .p-hero__brands ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .p-hero__brands li { display: grid; }
  .p-hero__brands a { flex-direction: column; justify-content: center; gap: .35rem; padding: .75rem .5rem; border-radius: var(--radius-lg); font-size: var(--fs-xs); }
}
@media (max-width: 47.99rem) {
  .p-hero__ctas { width: 100%; }
}

.p-promo__card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  background: var(--c-surface);
}
@media (min-width: 64rem) { .p-promo__card { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; } }
.p-promo__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1266 / 650;
  object-fit: contain;
}
.p-promo__body .btn-row { flex-wrap: nowrap; }
@media (min-width: 48rem) { .p-promo__body .btn { padding-inline: 1.1rem; } }
@media (max-width: 47.99rem) { .p-promo__body .btn-row { flex-direction: row; gap: .5rem; } .p-promo__body .btn { flex: 1 1 0; width: auto; padding-inline: .5rem; } }
.p-promo__body { padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
.p-promo__body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.p-promo__body p { margin-top: .9rem; color: var(--c-muted); }

.p-stock__slider { --slot-h: 540px; }

.p-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}
.p-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  grid-column: span 2;
  min-height: clamp(20rem, 16rem + 8vw, 25rem);
  border-radius: var(--radius-xl);
  background: var(--c-dark);
  color: rgba(255, 255, 255, .88);
}
.p-tile--kaufen,
.p-tile--verkaufen { grid-column: span 3; min-height: clamp(24rem, 18rem + 12vw, 33rem); }
.p-tile__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}
.p-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0) 30%, rgba(10, 14, 20, .55) 58%, rgba(10, 14, 20, .9) 100%);
}
.p-tile:hover .p-tile__img { transform: scale(1.06); }
.p-tile:has(.p-tile__link:focus-visible) { outline: 3px solid var(--c-primary); outline-offset: 3px; }
.p-tile__link:focus-visible { outline: none; }
.p-tile__body { padding: clamp(1.25rem, 1rem + 1.4vw, 2.25rem); }
.p-tile__num { color: rgba(255, 255, 255, .7); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; }
.p-tile h3 { margin-top: .35rem; color: #fff; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
.p-tile--kaufen h3,
.p-tile--verkaufen h3 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); }
.p-tile p { max-width: 32rem; margin-top: .5rem; font-size: var(--fs-sm); }
.p-tile__links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.1rem; }
.p-tile__link {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: .4rem;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.p-tile__link:first-child::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-tile__link:hover { color: #fff; }
.p-tile:hover .p-tile__link:first-child .icon--arrow { transform: translateX(4px); }
.p-tile__link .icon--arrow { transition: transform .25s var(--ease); }
.p-tile__link--2 { position: relative; z-index: 2; color: rgba(255, 255, 255, .85); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: .25em; }
.p-tile__link--2:hover { text-decoration-color: #fff; }

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .p-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-tile, .p-tile--kaufen, .p-tile--verkaufen { grid-column: span 1; }
  .p-tile--karriere { grid-column: span 2; }
}
@media (max-width: 47.99rem) {
  .p-tiles {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .p-tiles::-webkit-scrollbar { display: none; }
  .p-tile, .p-tile--kaufen, .p-tile--verkaufen { grid-column: auto; min-height: 27rem; scroll-snap-align: start; }
}

.p-new__grid {
  display: grid;
  gap: 1rem;
  list-style: none;
}
@media (min-width: 48rem) { .p-new__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 47.99rem) {
  .p-new__grid {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    margin-inline: calc(-1 * var(--gutter));
    padding: .25rem var(--gutter) .5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .p-new__grid::-webkit-scrollbar { display: none; }
  .p-new__grid > li { scroll-snap-align: start; }
  .p-new__tile { min-height: 20rem; }
}
.p-new__tile {
  position: relative;
  display: grid;
  align-content: end;
  justify-items: center;
  min-height: clamp(15rem, 10rem + 18vw, 26rem);
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #222;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.p-new__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.p-new__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 20, .15) 30%, rgba(10, 14, 20, .78) 100%);
}
.p-new__tile { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.p-new__tile:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-new__logo { transition: transform .35s var(--ease); }
.p-new__tile:hover .p-new__logo { transform: scale(1.08); }
.p-new__tile:hover .p-new__bg { transform: scale(1.04); }
.p-new__logo { width: 4rem; height: 4rem; margin-bottom: .9rem; }
.p-new__label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 500;
}

.p-browse .section-head { margin-bottom: .75rem; }
.p-browse__types { --slot-h: 235px; }

.p-contact__grid {
  display: grid;
  overflow: clip;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  background: var(--c-bg);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 64rem) {
  .p-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.p-contact__intro { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
@media (min-width: 64rem) { .p-contact__intro { border-right: 1px solid var(--c-line); } }
@media (max-width: 63.99rem) { .p-contact__intro { border-bottom: 1px solid var(--c-line); } }
.p-contact__intro .section-head { margin-bottom: 1.75rem; }
.p-contact .locations { grid-template-columns: 1fr; gap: 0; }
@media (min-width: 40rem) and (max-width: 63.99rem) { .p-contact .locations { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.p-contact .location { padding: 1.5rem 0 0; border-radius: 0; background: none; }
.p-contact .location + .location { margin-top: 1.5rem; border-top: 1px solid var(--c-line); }
@media (min-width: 40rem) and (max-width: 63.99rem) { .p-contact .location + .location { margin-top: 0; padding-left: 1.5rem; border-top: 0; border-left: 1px solid var(--c-line); } }
.p-contact .location:first-child { padding-top: 0; }
@media (max-width: 39.99rem) { .p-contact .hours { display: none; } }
@media (min-width: 64rem) { .p-contact .form-panel { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; } }
.p-contact .form-panel { border: 0; border-radius: 0; box-shadow: none; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }

.p-contact .location__contact .nw { white-space: nowrap; }
