/* WT-ANZEIGENMARKT-HOME-01: loaded only by the new landing page.
   The existing home.css supplies the shared public header.
   Its 64px inner height + 1px border becomes 58px + 1px below 761px. */
.am-home-main {
  --am-home-header-height: 65px;
  --am-home-green: #18743c;
  --am-home-text: #17291f;
  --am-home-muted: #59675e;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--am-home-text);
  background: #fff;
  line-height: 1.5;
}

.am-home-main section {
  margin-block: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.am-home-container { width: calc(100% - 48px); max-width: 1200px; margin-inline: auto; }
.am-home-main h1, .am-home-main h2, .am-home-main p { margin-top: 0; }
.am-home-main button, .am-home-main input, .am-home-main select { font: inherit; }
.am-home-main a:focus-visible, .am-home-main button:focus-visible, .am-home-main input:focus-visible {
  outline: 3px solid #198448;
  outline-offset: 4px;
}
.am-home-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.am-home-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.am-home-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.am-home-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.am-home-eyebrow { margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.am-home-note { color: var(--am-home-muted); font-size: 13px; }
.am-home-text-link { color: var(--am-home-green); font-size: 14px; font-weight: 700; text-decoration: none; }
.am-home-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.am-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--am-home-green);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.am-home-button:hover { background: #105a2d; color: #fff; }

/* Shared header: only this page uses the green section accent. */
.wt-home-header__nav .is-active { color: #8cdb9f; }
.wt-home-header__nav .is-active::after { background: #8cdb9f; }
.wt-home-header__mobile nav .is-active { background: #183b30; color: #b6efc5; }

/* Dedicated V-005 collage; the heading and controls remain selectable HTML. */
.wt-home-header .wt-home-button--green { background: #087b36; box-shadow: 0 5px 16px rgba(9, 122, 51, .18); }
.wt-home-header .wt-home-button--green:hover { background: #09612e; }
.am-home-main .am-home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 35vw, 630px);
  padding: 108px 0 134px;
  background: #071a2d;
  color: #fff;
  text-align: center;
}
.am-home-hero__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.am-home-hero::after { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(3, 16, 30, .3), transparent 65%); content: ""; }
.am-home-hero .am-home-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px; padding: 5px 12px; border-radius: 30px; background: rgba(8, 28, 27, .6); color: #e5f2e7; font-size: 10px; letter-spacing: .14em; }
.am-home-hero .am-home-eyebrow .am-home-icon { width: 17px; height: 17px; color: #81d85b; }
.am-home-hero h1 { margin-bottom: 20px; font-size: clamp(42px, 4.5vw, 76px); font-weight: 800; line-height: 1.07; letter-spacing: -.045em; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.am-home-hero h1 span { color: #8cd45b; }
.am-home-hero__intro { max-width: 760px; margin-inline: auto; margin-bottom: 0; color: #f0f3f5; font-size: 16px; text-shadow: 0 1px 6px #071a2d; }

/* Keep this outside the hero and leave main overflow visible so sticky spans the page. */
.am-home-search-wrap { position: sticky; top: var(--am-home-header-height); z-index: 400; margin-top: -104px; }
.am-home-search {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px 20px;
  border: 1px solid #dbe4de;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(10, 39, 22, .12);
}
.am-home-search > div { min-width: 0; }
.am-home-search__input { position: relative; }
.am-home-search__input .am-home-icon { position: absolute; top: 50%; left: 10px; width: 18px; height: 18px; color: #697a6f; transform: translateY(-50%); pointer-events: none; }
.am-home-search input, .am-home-search select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #dce3de; border-radius: 6px; }
.am-home-search input[type="search"] { padding: 9px 10px 9px 36px; background: #f4f6f4; color: #59675e; font-size: 12px; }
.am-home-search input::placeholder { color: #617066; opacity: 1; }
.am-home-search input:disabled, .am-home-search select:disabled { padding: 9px 8px; background: #f4f6f4; color: #59675e; -webkit-text-fill-color: #59675e; opacity: 1; font-size: 12px; cursor: not-allowed; }
.am-home-search__submit { padding-inline: 22px; }

.am-home-main .am-home-categories { padding-block: 34px 32px; }
.am-home-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.am-home-section-heading h2 { margin: 0; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
.am-home-category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 28px 14px; margin: 0; padding: 0; list-style: none; }
.am-home-category { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center; }
.am-home-category img, .am-home-category__dots { width: 96px; height: 96px; max-width: 100%; flex: 0 0 auto; border-radius: 50%; background: #eef4ee; }
.am-home-category img { object-fit: cover; }
.am-home-category__name { max-width: 100%; color: #405046; font-size: 12px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; hyphens: auto; }
.am-home-category__dots { display: grid; grid-template-columns: repeat(3, 7px); grid-template-rows: repeat(3, 7px); place-content: center; gap: 6px; }
.am-home-category__dots i { border-radius: 50%; background: #5c8c55; }

.am-home-main .am-home-preview { padding-block: 20px 38px; }
.am-home-preview .am-home-section-heading { margin-bottom: 10px; }
.am-home-preview > .am-home-note { margin-bottom: 24px; }
.am-home-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 20px; }
.am-home-card { min-width: 0; }
.am-home-card__image { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #e4e9e5; border-radius: 10px; background: linear-gradient(135deg, #eef2ef, #e3e9e5); color: #abb9ae; }
.am-home-card__image > .am-home-icon { width: 46px; height: 46px; stroke-width: 1.1; }
.am-home-card__photo-count, .am-home-card__favorite { position: absolute; top: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 30px; height: 30px; padding: 5px; border-radius: 20px; background: #f8faf8; color: #8b9b8f; }
.am-home-card__photo-count { right: 48px; font-size: 12px; }
.am-home-card__favorite { right: 10px; }
.am-home-card__photo-count .am-home-icon, .am-home-card__favorite .am-home-icon { width: 17px; height: 17px; }
.am-home-card__body { display: grid; gap: 9px; padding: 16px 3px 0; }
.am-home-card__body > span { display: block; height: 10px; border-radius: 4px; background: #e9eeea; }
.am-home-card__body .am-home-card__location { width: 36%; height: 7px; margin-bottom: 2px; }
.am-home-card__body .am-home-card__title { width: 88%; }
.am-home-card__body .am-home-card__title--short { width: 66%; }
.am-home-card__body .am-home-card__price { width: 28%; height: 12px; margin-top: 4px; background: #dce7dc; }

.am-home-main .am-home-promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-block: 12px 42px; }
.am-home-promo { position: relative; isolation: isolate; display: flex; align-items: center; min-width: 0; min-height: 228px; overflow: hidden; padding: 24px; border-radius: 12px; }
.am-home-promo--vehicles { background: linear-gradient(115deg, #368f45, #187537); color: #fff; }
.am-home-promo--living { background: linear-gradient(115deg, #9ed8ed, #d7edf4); color: #244859; }
.am-home-promo--deals { background: linear-gradient(115deg, #ffdd80, #ffebaf); color: #604314; }
.am-home-promo__content { position: relative; z-index: 1; width: 68%; }
.am-home-promo__icon { width: 31px; height: 31px; margin-bottom: 12px; padding: 5px; border-radius: 8px; background: rgba(255,255,255,.9); color: #327541; }
.am-home-promo--living .am-home-promo__icon { color: #407d96; }
.am-home-promo--deals .am-home-promo__icon { color: #b18a23; }
.am-home-promo h2 { margin-bottom: 9px; font-size: 21px; line-height: 1.15; letter-spacing: -.025em; }
.am-home-promo p { max-width: 205px; min-height: 38px; margin-bottom: 15px; font-size: 12px; line-height: 1.45; }
.am-home-promo a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 22px; background: #fff; color: #225d34; font-size: 11px; font-weight: 700; text-decoration: none; }
.am-home-promo a:hover { background: #f1f8ed; text-decoration: underline; }
.am-home-promo--living a { color: #31576a; }
.am-home-promo--deals a { color: #78521c; }
.am-home-promo__photo { position: absolute; inset: 0 0 0 auto; width: 50%; z-index: 0; background-image: url("../images/anzeigenmarkt/hero.webp"); background-repeat: no-repeat; background-size: auto 175%; mask-image: linear-gradient(to right, transparent, #000 38%); opacity: .92; }
.am-home-promo--vehicles .am-home-promo__photo { background-position: 98% 0; }
.am-home-promo--living .am-home-promo__photo { background-position: 0 0; mask-image: linear-gradient(to right, transparent, #000 65%); }
.am-home-promo__deal-mark { position: absolute; right: 18px; bottom: 26px; display: grid; place-items: center; width: 74px; height: 106px; padding-top: 16px; border-radius: 9px 9px 12px 12px; background: linear-gradient(125deg, #e69a42, #ba582c); box-shadow: 0 8px 20px rgba(122,71,12,.13); color: #fff4d2; font-size: 55px; font-weight: 800; transform: rotate(13deg); }
.am-home-promo__deal-mark::before { position: absolute; top: 10px; left: calc(50% - 5px); width: 10px; height: 10px; border: 2px solid #a15c2a; border-radius: 50%; background: #ffdfa0; content: ""; }

.am-home-main .am-home-cta { margin-top: 54px; padding-block: 66px 46px; background: linear-gradient(105deg, #f6f9ff, #fff 80%); color: #13253e; }
.am-home-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 30px; }
.am-home-cta .am-home-eyebrow { margin-bottom: 15px; color: #1466e8; font-size: 10px; letter-spacing: .1em; }
.am-home-cta h2 { max-width: 490px; margin-bottom: 17px; font-size: clamp(28px, 2.55vw, 40px); line-height: 1.2; letter-spacing: -.04em; }
.am-home-cta__copy > p:not(.am-home-eyebrow) { max-width: 480px; margin-bottom: 24px; color: #617084; font-size: 14px; line-height: 1.6; }
.am-home-cta__benefits { display: grid; gap: 15px; margin: 0 0 30px; padding: 0; list-style: none; }
.am-home-cta__benefits li { display: flex; align-items: baseline; gap: 11px; color: #526276; font-size: 13px; }
.am-home-cta__benefits li::before { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; background: #1263f3; color: #fff; font-size: 12px; font-weight: 700; content: "✓"; }
.am-home-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.am-home-cta .am-home-button { padding: 12px 20px; border-radius: 6px; background: #1263f3; font-size: 13px; }
.am-home-cta .am-home-button:hover { background: #0a48c7; }
.am-home-cta .am-home-text-link { color: #1263f3; font-size: 12px; }
.am-home-cta__visual { min-width: 0; margin: 0; text-align: center; }
.am-home-cta__visual img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.am-home-cta__visual figcaption { margin-top: -14px; color: #748196; font-size: 10px; }

.am-home-footer { padding: 48px 0 22px; }
.am-home-footer .wt-home-footer__grid { grid-template-columns: 1.4fr .8fr .8fr .9fr 1.2fr; gap: 30px; padding-bottom: 34px; }
.am-home-footer .wt-home-brand { font-size: 19px; }
.am-home-footer .wt-home-footer__about p { max-width: 255px; line-height: 1.65; }
.am-home-footer .wt-home-footer__grid h2 { line-height: 1.5; }
.am-home-footer .wt-home-footer__grid nav { gap: 9px; }
.am-home-footer__contact, .am-home-footer__login { display: inline-block; color: #adbed0; font-size: 12px; text-decoration: none; }
.am-home-footer__contact:hover, .am-home-footer__login:hover { color: #fff; text-decoration: underline; }
.am-home-footer__join p { color: #92a4b8; font-size: 12px; line-height: 1.6; }
.am-home-footer__button { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 40px; padding: 10px 15px; border-radius: 6px; background: #1263f3; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.am-home-footer__button:hover { background: #0a48c7; color: #fff; }
.am-home-footer__login { margin-top: 13px; }
.am-home-footer .wt-home-footer__trust { gap: 20px; padding-block: 26px; }
.am-home-footer .wt-home-footer__trust small { margin-top: 3px; font-size: 11px; }
.am-home-footer .wt-home-footer__bottom { padding-top: 20px; font-size: 11px; }

@media (min-width: 1101px) and (max-width: 1399px) {
  .wt-home-header__inner { gap: 16px; }
  .wt-home-header__nav { gap: 12px; }
  .wt-home-header__actions { gap: 8px; }
  .wt-home-header__actions .wt-home-button { padding-inline: 10px; }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .am-home-search { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; padding: 12px 18px; }
  .am-home-search__query { grid-column: span 2; }
  .am-home-search__submit { grid-column: 3; }
  .am-home-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .am-home-promo { padding: 20px; }
  .am-home-promo__content { width: 75%; }
  .am-home-promo h2 { font-size: 19px; }
  .am-home-footer .wt-home-footer__grid { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 30px 24px; }
  .am-home-footer__join { grid-column: 1 / -1; max-width: 380px; }
}

@media (max-width: 900px) {
  .am-home-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-home-main .am-home-promos { grid-template-columns: 1fr; gap: 14px; }
  .am-home-promo { min-height: 180px; }
  .am-home-promo__content { width: 70%; max-width: 380px; }
  .am-home-promo p { min-height: 0; }
  .am-home-promo__photo { width: 46%; background-size: auto 210%; }
  .am-home-promo__deal-mark { right: 10%; }
  .am-home-cta__inner { grid-template-columns: 1fr; gap: 30px; }
  .am-home-cta__copy { max-width: 610px; }
  .am-home-cta__visual { width: min(100%, 640px); margin-inline: auto; }
}

@media (max-width: 767px) {
  .am-home-container { width: calc(100% - 28px); }
  .am-home-main .am-home-hero { min-height: 420px; padding-block: 90px 140px; }
  .am-home-hero__image { object-position: 47% center; }
  .am-home-hero::after { background: rgba(4, 17, 30, .38); }
  .am-home-search-wrap { margin-top: -117px; }
  .am-home-hero h1 { font-size: clamp(32px, 7.6vw, 48px); }
  .am-home-hero__intro { font-size: 14px; }
  .am-home-desktop-break { display: none; }
  .am-home-search { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 0; padding: 10px; border-radius: 9px; }
  .am-home-search__query { grid-column: 1 / 3; grid-row: 1; }
  .am-home-search__submit { grid-column: 3; grid-row: 1; min-height: 42px; padding: 10px; font-size: 13px; }
  .am-home-search input:disabled, .am-home-search select:disabled { min-height: 36px; padding: 7px 4px; font-size: 10px; }
  .am-home-search select:disabled { appearance: none; }
  .am-home-search input[type="search"] { font-size: 12px; }
  .am-home-main .am-home-categories { padding-block: 28px 20px; }
  .am-home-section-heading h2 { font-size: 21px; }
  .am-home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .am-home-category img, .am-home-category__dots { width: 82px; height: 82px; }
  .am-home-category__name { font-size: 11px; }
  .am-home-card-grid { gap: 24px 12px; }
  .am-home-card__photo-count, .am-home-card__favorite { top: 7px; min-width: 25px; height: 25px; padding: 4px; }
  .am-home-card__favorite { right: 7px; }
  .am-home-card__photo-count { right: 37px; }
  .am-home-card__image > .am-home-icon { width: 36px; height: 36px; }
  .am-home-main .am-home-cta { margin-top: 20px; padding-block: 46px 30px; }
  .am-home-cta__actions .am-home-button { max-width: 100%; padding-inline: 18px; }
  .am-home-cta__benefits li { font-size: 12px; }
  .am-home-footer .wt-home-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .am-home-footer .wt-home-footer__about { grid-column: 1 / -1; }
  .am-home-footer__join { grid-column: auto; max-width: none; }
  .am-home-footer .wt-home-footer__trust { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .am-home-footer .wt-home-footer__trust > span { font-size: 11px; }
  .am-home-footer .wt-home-footer__bottom { flex-direction: column; gap: 8px; }
  .am-home-footer { padding-top: 36px; }
}

@media (max-width: 760px) {
  .am-home-main { --am-home-header-height: 59px; }
}

@media (max-width: 380px) {
  .am-home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-home-search input:disabled, .am-home-search select:disabled { font-size: 9px; }
  .am-home-card-grid { grid-template-columns: 1fr; }
  .am-home-hero h1 { font-size: 30px; }
  .am-home-footer .wt-home-footer__grid { grid-template-columns: 1fr; }
  .am-home-footer .wt-home-footer__about { grid-column: auto; }
  .am-home-footer .wt-home-footer__trust { grid-template-columns: 1fr; }
}
