/* Kapnula visual system — loaded after the legacy Berater stylesheet. */
:root {
  --brand: #2563eb;
  --brand-strong: #194fc6;
  --brand-soft: #eaf2ff;
  --accent: #ff6b4a;
  --accent-strong: #e65334;
  --bay-teal: #13b8a6;
  --bay-teal-strong: #0e8f83;
  --haupt-navy: #102a43;
  --haupt-navy-2: #0b2035;
  --ink: #162033;
  --muted: #637083;
  --muted-2: #8794a5;
  --line: #d9e3ec;
  --line-strong: #c4d1dc;
  --surface: #ffffff;
  --surface-2: #f3f7fa;
  --surface-3: #eaf1f6;
  --success: #178a6b;
  --danger: #d83b3b;
  --warning: #b85c14;
  --shadow-sm: 0 2px 8px rgba(16, 42, 67, .06);
  --shadow-md: 0 14px 34px rgba(16, 42, 67, .10);
  --shadow-lg: 0 28px 70px rgba(7, 27, 45, .16);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1240px;
  --transition: 180ms ease;
}

body.hauptbay {
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(19, 184, 166, .08), transparent 25rem),
    var(--surface-2);
}

body.hauptbay::selection { color: #fff; background: var(--brand); }
body.hauptbay :focus-visible { outline: 3px solid rgba(37, 99, 235, .30); outline-offset: 3px; }
body.hauptbay a, body.hauptbay button { -webkit-tap-highlight-color: transparent; }

.hauptbay .button,
.hauptbay .btn,
.hauptbay .btn-border {
  min-height: 46px;
  border-radius: 14px;
  font-weight: 800;
}
.hauptbay .button--primary,
.hauptbay .btn {
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .20);
}
.hauptbay .button--primary:hover,
.hauptbay .btn:hover { background: var(--brand-strong); box-shadow: 0 14px 28px rgba(37, 99, 235, .26); }
.hauptbay .button--accent,
.hauptbay .button--post { color: #fff !important; background: var(--accent); box-shadow: 0 10px 22px rgba(255, 107, 74, .24); }
.hauptbay .button--accent:hover,
.hauptbay .button--post:hover { background: var(--accent-strong); box-shadow: 0 14px 30px rgba(255, 107, 74, .30); }
.hauptbay .button--soft,
.hauptbay .btn-border { border-color: var(--line); background: rgba(255, 255, 255, .94); }
.hauptbay .button--soft:hover,
.hauptbay .btn-border:hover { color: var(--brand) !important; border-color: rgba(37, 99, 235, .35); background: var(--brand-soft); }

/* Header */
.hauptbay .site-header {
  border-bottom-color: rgba(217, 227, 236, .82);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 rgba(16, 42, 67, .02);
  backdrop-filter: blur(20px) saturate(155%);
}
.hauptbay .topbar { color: #cfe0eb; background: var(--haupt-navy-2); }
.hauptbay .topbar__tagline { letter-spacing: .02em; }
.hauptbay .language-switch { border: 1px solid rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .06); }
.hauptbay .language-switch button { color: #d7e4ec; }
.hauptbay .language-switch button:hover,
.hauptbay .language-switch button.is-active { color: var(--haupt-navy); background: var(--surface); }
.hauptbay .header-main { min-height: 82px; gap: 38px; }
.hauptbay .brand { gap: 12px; }
.hauptbay .brand__mark {
  width: 46px;
  height: 46px;
  overflow: visible;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 8px 20px rgba(16, 42, 67, .16);
}
.hauptbay .brand__mark img { display: block; width: 46px; height: 46px; }
.hauptbay .brand__copy b { color: var(--haupt-navy); font-size: 23px; font-weight: 900; letter-spacing: -.045em; }
.hauptbay .brand__copy small {
  max-width: 190px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.hauptbay .desktop-nav { gap: 3px; }
.hauptbay .desktop-nav a { padding: 10px 13px; color: #425269; border-radius: 12px; }
.hauptbay .desktop-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.hauptbay .icon-button { border-color: var(--line); border-radius: 14px; }
.hauptbay #login_pane .pm_num { background: var(--accent); }
.hauptbay .dropdown-form { border-color: var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }

/* Hero */
.hauptbay .hero {
  isolation: isolate;
  min-height: 520px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 15%, rgba(37, 99, 235, .58), transparent 33%),
    radial-gradient(circle at 88% 28%, rgba(19, 184, 166, .38), transparent 31%),
    linear-gradient(132deg, #0b2035 0%, #102a43 52%, #123d56 100%);
}
.hauptbay .hero::before {
  width: 560px;
  height: 560px;
  right: -230px;
  bottom: -390px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 145px rgba(255, 255, 255, .018);
}
.hauptbay .hero::after {
  width: 280px;
  height: 280px;
  left: -165px;
  top: -150px;
  border-color: rgba(19, 184, 166, .28);
  box-shadow: 0 0 0 55px rgba(19, 184, 166, .035);
}
.hauptbay .hero__inner { min-height: 520px; padding-block: 76px 54px; }
.hauptbay .hero__copy { max-width: 860px; }
.hauptbay .hero .eyebrow {
  margin-bottom: 18px;
  padding: 7px 10px;
  color: #aaf2e8;
  border: 1px solid rgba(19, 184, 166, .34);
  border-radius: 999px;
  background: rgba(19, 184, 166, .10);
  letter-spacing: .11em;
}
.hauptbay .hero h1 { max-width: 850px; font-size: clamp(42px, 5.25vw, 70px); letter-spacing: -.058em; }
.hauptbay .hero__copy > p { max-width: 780px; color: #d7e5ee; font-size: clamp(17px, 2vw, 21px); }
.hauptbay .hero-search {
  gap: 6px;
  max-width: 1180px;
  margin-top: 36px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(1, 15, 27, .34);
}
.hauptbay .search-field { padding-inline: 15px; border-right-color: var(--line); }
.hauptbay .search-field svg { color: var(--brand); }
.hauptbay .search-field input,
.hauptbay .search-field select { height: 54px; }
.hauptbay .hero-search .button { min-width: 138px; min-height: 54px; border-radius: 16px; }
.hauptbay .hero__trust { gap: 14px 22px; margin-top: 18px; color: #d7e5ee; }
.hauptbay .hero__trust > span { display: inline-flex; align-items: center; gap: 7px; }
.hauptbay .hero__trust svg { width: 16px; height: 16px; color: #72e0d4; }
.hauptbay .hero__signals {
  display: grid;
  width: fit-content;
  grid-template-columns: repeat(3, minmax(150px, auto));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(12px);
}
.hauptbay .hero__signals div { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; background: rgba(8, 31, 49, .48); }
.hauptbay .hero__signals strong { color: #fff; font-size: 18px; }
.hauptbay .hero__signals span { color: #c7d7e2; font-size: 11px; font-weight: 700; }

/* Categories */
.hauptbay .section { padding-block: 70px; }
.hauptbay .categories-section {
  background:
    linear-gradient(180deg, #fff 0%, #fff 70%, #f8fbfd 100%);
}
.hauptbay .section-heading { margin-bottom: 28px; }
.hauptbay .section-heading h2,
.hauptbay .market-toolbar h2,
.hauptbay .trust-card h2 { color: var(--haupt-navy); }
.hauptbay .eyebrow { color: var(--bay-teal-strong); }
.hauptbay .category-grid { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.hauptbay .category-card {
  min-height: 64px;
  padding: 12px 14px;
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(16, 42, 67, .04);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hauptbay .category-card::after {
  position: absolute;
  inset: auto 14px 0 14px;
  height: 2px;
  content: "";
  border-radius: 2px 2px 0 0;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity var(--transition), transform var(--transition);
}
.hauptbay .category-card { position: relative; }
.hauptbay .category-card:hover { transform: translateY(-2px); border-color: rgba(37, 99, 235, .28); box-shadow: 0 4px 12px rgba(37,99,235,.1); }
.hauptbay .category-card:hover::after { opacity: 1; transform: scaleX(1); }
.hauptbay .category-card__icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.hauptbay .category-card__icon svg { width: 20px; height: 20px; }
.hauptbay .category-card b { font-size: .95rem; }
.hauptbay .category-card small { font-size: .75rem; }
.hauptbay .category-card > span > b, .hauptbay .category-card > span > small { display: block; line-height: 1.3; }
.hauptbay .category-card > i { font-size: .8rem; opacity: .4; }

.hauptbay .category-card--rose .category-card__icon { color: #be185d; background: #fff1f5; }
.hauptbay .category-card--cyan .category-card__icon { color: #0e7490; background: #ecfeff; }
.hauptbay .category-card--slate .category-card__icon { color: #475569; background: var(--surface-3); }
.hauptbay .category-card--lime .category-card__icon { color: #65a30d; background: #f7fee7; }
.hauptbay .category-card--violet .category-card__icon,
.hauptbay .category-card--indigo .category-card__icon { color: var(--brand); background: var(--brand-soft); }
.hauptbay .category-card--emerald .category-card__icon,
.hauptbay .category-card--teal .category-card__icon { color: var(--bay-teal-strong); background: #dff8f4; }
.hauptbay .category-card--orange .category-card__icon,
.hauptbay .category-card--amber .category-card__icon,
.hauptbay .category-card--pink .category-card__icon { color: #d95132; background: #fff0eb; }

/* Marketplace */
.hauptbay .main-content { padding-block: 60px 78px; }
.hauptbay .market-toolbar { margin-bottom: 28px; }
.hauptbay .market-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
.hauptbay .market-filters {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(16, 42, 67, .06);
}
.hauptbay .market-filters::-webkit-scrollbar { width: 5px; }
.hauptbay .market-filters::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.hauptbay .filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.hauptbay .filter-head h3 { font-size: .95rem; font-weight: 800; margin: 0; }
.hauptbay .filter-head button { font-size: .75rem; color: #ef4444; font-weight: 700; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hauptbay .market-filters form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hauptbay .market-filters label { display: grid; gap: 4px; font-size: .72rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.hauptbay .market-filters input,
.hauptbay .market-filters select,
.hauptbay .login_form input {
  border-color: var(--line-strong);
  border-radius: 10px;
  min-height: 38px;
  font-size: .85rem;
  padding: 7px 10px;
}
.hauptbay .market-filters input:focus,
.hauptbay .market-filters select:focus,
.hauptbay .login_form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .11); outline: 0; }
.hauptbay .filter-range { gap: 8px; }
.hauptbay .filter-advanced-link { font-size: .8rem; }
.hauptbay .filter-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1999; opacity: 0; pointer-events: none; transition: opacity .25s; }
.hauptbay .filter-backdrop.is-open { opacity: 1; pointer-events: auto; }
.hauptbay .listing-grid { gap: 20px; }
.hauptbay .ad-card {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(16, 42, 67, .06);
  overflow: hidden;
}
.hauptbay .ad-card:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, .25); box-shadow: 0 8px 24px rgba(37,99,235,.12); }
.hauptbay .ad-card__media { background: linear-gradient(145deg, #eaf2ff, #eef7f6); aspect-ratio: 16 / 10; }
.hauptbay .ad-card__media img { transition: transform .4s ease; }
.hauptbay .ad-card:hover .ad-card__media img { transform: scale(1.04); }
.hauptbay .ad-card__badge { border-radius: 8px; background: rgba(16, 42, 67, .88); backdrop-filter: blur(8px); font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.hauptbay .ad-card__favorite { color: var(--haupt-navy); }
.hauptbay .ad-card__body { padding: 14px 16px 16px; }
.hauptbay .ad-card__category { color: var(--bay-teal-strong); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.hauptbay .ad-card__title { font-size: 15px; line-height: 1.4; min-height: 42px; }
.hauptbay .ad-card__title a { color: var(--haupt-navy); }
.hauptbay .ad-card__title a:hover { color: var(--brand); }
.hauptbay .ad-card__price { color: var(--haupt-navy); font-size: 20px; font-weight: 900; letter-spacing: -.02em; margin-top: 8px; }
.hauptbay .ad-card__summary { display: block; margin-top: 6px; color: #64748b; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hauptbay .ad-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; font-size: 11px; color: #64748b; }
.hauptbay .ad-card__location { font-weight: 600; color: #475569; display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hauptbay .ad-card__location svg { flex-shrink: 0; width: 13px; height: 13px; color: #94a3b8; }
.hauptbay .ad-card__location a { color: #475569; text-decoration: none; }
.hauptbay .ad-card__location a:hover { color: #2563eb; }
.hauptbay .ad-card__date { color: #94a3b8; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.hauptbay .listing-facet { display: none !important; }

/* TV and large screen optimization */
@media (min-width: 1920px) {
  .hauptbay .ad-card__title { font-size: 17px; }
  .hauptbay .ad-card__price { font-size: 24px; }
  .hauptbay .ad-card__body { padding: 18px 20px 20px; }
  .hauptbay .ad-card__category { font-size: 12px; }
  .hauptbay .ad-card__summary { font-size: 14px; }
  .hauptbay .ad-card__meta { font-size: 13px; }
  .hauptbay .ad-card__location svg { width: 16px; height: 16px; }
}

/* Auto/TV browsers — no hover, larger touch targets */
@media (hover: none), tv {
  .hauptbay .ad-card:hover { transform: none; }
  .hauptbay .ad-card__location { font-size: 13px; padding: 2px 0; }
  .hauptbay .ad-card__date { font-size: 13px; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hauptbay .ad-card:hover { transform: none; }
  .hauptbay .ad-card:hover .ad-card__media img { transform: none; }
}
.hauptbay .content-card { border-color: var(--line); border-radius: var(--radius-lg); box-shadow: 0 8px 28px rgba(16, 42, 67, .06); }
.hauptbay .page-heading h1 { color: var(--haupt-navy); }
.hauptbay .navigation span { border-color: var(--brand); background: var(--brand); }

/* Detail and forms */
.hauptbay .ad-detail__gallery,
.hauptbay .ad-detail__content,
.hauptbay .seller-card,
.hauptbay .safety-card,
.hauptbay .related-section,
.hauptbay .form-section { border-color: var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.hauptbay .ad-detail__title,
.hauptbay .ad-detail__price,
.hauptbay .add-ad-head h1 { color: var(--haupt-navy); }
.hauptbay .seller-card__avatar,
.hauptbay .form-section__icon { color: var(--brand); background: var(--brand-soft); }
.hauptbay .safety-card { color: #7a4517; border-color: #f6d6b6; background: #fff8f1; }
.hauptbay .add-progress__item.is-active,
.hauptbay .add-progress__item.is-done { color: var(--brand); }
.hauptbay .add-progress__item.is-active .add-progress__num,
.hauptbay .add-progress__item.is-done .add-progress__num { border-color: var(--brand); background: var(--brand); }
.hauptbay .add-progress__item.is-done::before,
.hauptbay .add-progress__item.is-active::before { background: var(--brand); }

/* Trust */
.hauptbay .trust-section { padding-top: 0; }
.hauptbay .trust-card {
  gap: 24px;
  padding: 32px;
  color: #dbe9ef;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, .42), transparent 31%),
    linear-gradient(135deg, var(--haupt-navy-2), #123d56 68%, #0d5f65);
  box-shadow: 0 24px 60px rgba(7, 27, 45, .20);
}
.hauptbay .trust-card__icon { color: #dff8f4; background: rgba(19, 184, 166, .18); }
.hauptbay .trust-card h2 { color: #fff; }
.hauptbay .trust-card .button--soft { color: var(--haupt-navy) !important; border-color: rgba(255, 255, 255, .24); }

/* Footer */
.hauptbay .site-footer { color: #cbd9e3; background: #091c2d; }
.hauptbay .footer-grid { gap: 50px; padding-block: 64px 44px; }
.hauptbay .brand--footer .brand__copy b { color: #fff; }
.hauptbay .brand--footer .brand__copy small { color: #a9bdca; }
.hauptbay .footer-brand > p { color: #a9bdca; }
.hauptbay .footer-brand__note { margin-top: 10px !important; color: #8098a8 !important; font-size: 12px !important; }
.hauptbay .footer-grid h3 { letter-spacing: .07em; }
.hauptbay .footer-grid a,
.hauptbay .footer-link-button { color: #a9bdca; }
.hauptbay .footer-grid a:hover,
.hauptbay .footer-link-button:hover { color: #fff; }
.hauptbay .footer-bottom { border-top-color: rgba(203, 217, 227, .16); color: #8098a8; }
.hauptbay .language-switch--footer { background: rgba(255, 255, 255, .06); }

/* Cookie notice */
.hauptbay .cookie-banner {
  position: fixed;
  z-index: 2600;
  right: 50%;
  bottom: 18px;
  width: min(900px, calc(100% - 32px));
  padding: 15px 16px;
  border-color: rgba(196, 209, 220, .92);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 65px rgba(7, 27, 45, .22);
  transform: translateX(50%);
  backdrop-filter: blur(18px);
}
.hauptbay .cookie-banner__icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; color: var(--bay-teal-strong); border-radius: 14px; background: #dff8f4; }
.hauptbay .cookie-banner__icon svg { width: 23px; height: 23px; }
.hauptbay .cookie-banner__copy { min-width: 0; }
.hauptbay .cookie-banner__copy b { color: var(--haupt-navy); }
.hauptbay .cookie-banner__actions { display: flex; flex: 0 0 auto; gap: 8px; }
.hauptbay .cookie-banner .button { min-height: 42px; }

/* Static and legal content */
.hauptbay .page-static .content-card--page { max-width: 960px; margin-inline: auto; }
.hauptbay .content-card--page h1,
.hauptbay .content-card--page h2,
.hauptbay .content-card--page h3 { color: var(--haupt-navy); }
.hauptbay .content-card--page h2 { margin-top: 1.8em; }
.hauptbay .content-card--page p,
.hauptbay .content-card--page li { color: #39485b; }
.hauptbay .content-card--page a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.hauptbay .content-card--page table { width: 100%; border-collapse: collapse; }
.hauptbay .content-card--page th,
.hauptbay .content-card--page td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.hauptbay .content-card--page th { color: var(--haupt-navy); background: var(--surface-2); }

/* Mobile navigation */
.hauptbay .mobile-menu { border-top-color: var(--line); }
.hauptbay .mobile-menu__inner a:hover { color: var(--brand); background: var(--brand-soft); }
.hauptbay .mobile-bottom-nav { border-top-color: var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); }
.hauptbay .mobile-bottom-nav__post { color: var(--accent) !important; }

@media (max-width: 1100px) {
  .hauptbay .header-main { gap: 22px; }
  .hauptbay .desktop-nav a { padding-inline: 9px; }
  .hauptbay .brand__copy small { max-width: 145px; }
  .hauptbay .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hauptbay .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hauptbay .topbar__tagline { display: block; max-width: calc(100% - 128px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hauptbay .desktop-nav { display: none; }
  .hauptbay .mobile-menu-toggle { display: inline-grid; }
  .hauptbay .header-main { min-height: 74px; }
  .hauptbay .hero { min-height: 0; }
  .hauptbay .hero__inner { min-height: 0; padding-block: 62px 48px; }
  .hauptbay .hero-search { grid-template-columns: 1fr 1fr; }
  .hauptbay .search-field--query { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .hauptbay .hero-search .button { grid-column: 1 / -1; }
  .hauptbay .hero__signals { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .hauptbay .hero__signals div { justify-content: center; }
  .hauptbay .market-layout { grid-template-columns: 1fr; }
  .hauptbay .market-filters { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 90vw); z-index: 2000; transform: translateX(105%); transition: transform .25s ease; max-height: 100vh; border-radius: 0; }
  .hauptbay .market-filters.is-open { transform: translateX(0); }
  .hauptbay .filter-toggle { display: inline-flex; }
  .hauptbay .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hauptbay .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hauptbay .footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  .hauptbay .container { width: min(calc(100% - 28px), var(--container)); }
  .hauptbay .topbar { min-height: 32px; }
  .hauptbay .topbar__inner { min-height: 32px; }
  .hauptbay .topbar__tagline { font-size: 10px; }
  .hauptbay .header-main { min-height: 66px; gap: 12px; }
  .hauptbay .brand__mark,
  .hauptbay .brand__mark img { width: 40px; height: 40px; }
  .hauptbay .brand__copy b { font-size: 20px; }
  .hauptbay .brand__copy small { display: none; }
  .hauptbay .header-actions { gap: 7px; }
  .hauptbay .button--post { display: none; }
  .hauptbay .hero__inner { padding-block: 50px 42px; }
  .hauptbay .hero .eyebrow { margin-bottom: 14px; font-size: 10px; }
  .hauptbay .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .hauptbay .hero__copy > p { margin-top: 16px; font-size: 16px; }
  .hauptbay .hero-search { grid-template-columns: 1fr; margin-top: 28px; padding: 6px; border-radius: 18px; }
  .hauptbay .search-field,
  .hauptbay .search-field--query { grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .hauptbay .hero-search .button { grid-column: 1; }
  .hauptbay .hero__trust { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .hauptbay .hero__signals { grid-template-columns: 1fr; gap: 0; }
  .hauptbay .hero__signals div { justify-content: flex-start; padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .hauptbay .hero__signals div:last-child { border-bottom: 0; }
  .hauptbay .section { padding-block: 52px; }
  .hauptbay .section-heading { align-items: flex-start; }
  .hauptbay .section-heading .text-link { display: none; }
  .hauptbay .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hauptbay .category-card { min-height: 56px; }
  .hauptbay .market-toolbar { align-items: flex-start; }
  .hauptbay .toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .hauptbay .listing-grid { grid-template-columns: 1fr; }
  .hauptbay .trust-card { grid-template-columns: 1fr; padding: 26px; }
  .hauptbay .trust-card .button { width: 100%; }
  .hauptbay .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .hauptbay .footer-brand { grid-column: 1 / -1; }
  .hauptbay .footer-grid > div:last-child { grid-column: auto; }
  .hauptbay .footer-bottom { min-height: 92px; padding-bottom: 72px; flex-direction: column; justify-content: center; text-align: center; }
  .hauptbay .cookie-banner { right: 12px; left: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: auto; transform: none; align-items: flex-start; gap: 12px; padding: 14px; }
  .hauptbay .cookie-banner__icon { width: 38px; height: 38px; }
  .hauptbay .cookie-banner__actions { flex-direction: column; }
  .hauptbay .cookie-banner__actions .button { min-height: 38px; padding: 8px 11px; font-size: 12px; }
  .hauptbay .mobile-bottom-nav { display: grid; }
}

@media (max-width: 430px) {
  .hauptbay .topbar__tagline { display: none; }
  .hauptbay .topbar__inner { justify-content: flex-end; }
  .hauptbay .brand__copy b { font-size: 19px; }
  .hauptbay .header-actions #login_pane .btn-border { max-width: 94px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hauptbay .hero h1 { font-size: 36px; }
  .hauptbay .footer-grid { grid-template-columns: 1fr; }
  .hauptbay .footer-grid > div:last-child { grid-column: 1; }
  .hauptbay .cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: auto 1fr; }
  .hauptbay .cookie-banner__actions { grid-column: 1 / -1; flex-direction: row; }
  .hauptbay .cookie-banner__actions .button:first-child { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hauptbay *,
  .hauptbay *::before,
  .hauptbay *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Authentication and registration */
.hauptbay .auth-shell {
  display: grid;
  max-width: 1080px;
  min-height: 650px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(7, 27, 45, .14);
}
.hauptbay .auth-intro {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(34px, 5vw, 58px);
  color: #d9e7ef;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, .52), transparent 36%),
    radial-gradient(circle at 88% 78%, rgba(19, 184, 166, .34), transparent 33%),
    linear-gradient(145deg, #0b2035, #123d56);
}
.hauptbay .auth-intro::after {
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 300px;
  height: 300px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, .025);
}
.hauptbay .auth-intro > * { position: relative; z-index: 1; }
.hauptbay .auth-brand { display: inline-flex; width: fit-content; align-items: center; gap: 12px; margin-bottom: 48px; color: #fff !important; }
.hauptbay .auth-brand img { width: 54px; height: 54px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .18)); }
.hauptbay .auth-brand span { display: grid; line-height: 1; }
.hauptbay .auth-brand b { font-size: 24px; letter-spacing: -.04em; }
.hauptbay .auth-brand small { margin-top: 5px; color: #aac0cd; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hauptbay .auth-intro .eyebrow { color: #8ee8de; }
.hauptbay .auth-intro h1 { max-width: 460px; margin: 0; color: #fff; font-size: clamp(34px, 4.5vw, 50px); line-height: 1.06; letter-spacing: -.05em; }
.hauptbay .auth-intro > p { max-width: 480px; margin: 18px 0 0; color: #ccdae3; font-size: 16px; }
.hauptbay .auth-benefits { display: grid; gap: 13px; margin: 30px 0 0; padding: 0; list-style: none; }
.hauptbay .auth-benefits li { display: flex; align-items: center; gap: 10px; color: #e7f1f5; font-size: 13px; }
.hauptbay .auth-benefits li > span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; color: #073d3a; border-radius: 50%; background: #70e0d3; font-size: 12px; font-weight: 900; }
.hauptbay .auth-trust { display: flex; align-items: flex-start; gap: 10px; margin-top: 40px; padding-top: 24px; color: #aac0cd; border-top: 1px solid rgba(255, 255, 255, .13); font-size: 11px; }
.hauptbay .auth-trust svg { width: 18px; height: 18px; flex: 0 0 auto; color: #70e0d3; }
.hauptbay .auth-card { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 58px); background: var(--surface); }
.hauptbay .auth-card__head { margin-bottom: 26px; }
.hauptbay .auth-card__head .eyebrow { margin-bottom: 8px; }
.hauptbay .auth-card__head h2 { margin: 0; color: var(--haupt-navy); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.04em; }
.hauptbay .auth-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 17px; margin: 0; padding: 0; list-style: none; }
.hauptbay .auth-fields .form-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.hauptbay .auth-fields label { color: #34465a; font-size: 12px; font-weight: 800; }
.hauptbay .auth-fields input,
.hauptbay .auth-fields textarea,
.hauptbay .auth-fields select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hauptbay .auth-fields textarea { min-height: 120px; resize: vertical; }
.hauptbay .auth-fields input:focus,
.hauptbay .auth-fields textarea:focus,
.hauptbay .auth-fields select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .11); outline: 0; }
.hauptbay .auth-fields .login_check { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hauptbay .auth-fields .login_check .button { min-height: 48px; }
.hauptbay .auth-legal { margin: 22px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.hauptbay .auth-help { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.hauptbay .auth-help a { color: var(--brand); font-weight: 800; }
.hauptbay .login-form-title { display: grid; margin-bottom: 18px; }
.hauptbay .login-form-title b { color: var(--haupt-navy); font-size: 23px; }
.hauptbay .login-form-title small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 820px) {
  .hauptbay .auth-shell { grid-template-columns: 1fr; }
  .hauptbay .auth-intro { min-height: 390px; }
  .hauptbay .auth-brand { margin-bottom: 34px; }
}

@media (max-width: 520px) {
  .hauptbay .auth-shell { margin-inline: -2px; border-radius: 22px; }
  .hauptbay .auth-intro,
  .hauptbay .auth-card { padding: 28px 22px; }
  .hauptbay .auth-intro { min-height: 350px; }
  .hauptbay .auth-brand { margin-bottom: 26px; }
  .hauptbay .auth-intro h1 { font-size: 34px; }
  .hauptbay .auth-fields .login_check { grid-template-columns: 1fr; }
}

/* ===== Kapnula legal and trust pages ===== */
.hauptbay .legal-page{max-width:1180px;margin:0 auto;padding:32px 20px 72px;color:var(--ink)}
.hauptbay .legal-hero{position:relative;overflow:hidden;padding:44px clamp(24px,5vw,64px);border-radius:30px;background:linear-gradient(135deg,#102a43 0%,#173f65 58%,#126b70 100%);color:#fff;box-shadow:0 24px 54px rgba(16,42,67,.18)}
.hauptbay .legal-hero:after{content:"";position:absolute;right:-80px;top:-110px;width:290px;height:290px;border-radius:50%;background:radial-gradient(circle,rgba(19,184,166,.42),rgba(19,184,166,0) 68%);pointer-events:none}
.hauptbay .legal-hero--safety{background:linear-gradient(135deg,#102a43 0%,#163d5d 52%,#0c6d64 100%)}
.hauptbay .legal-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:13px;padding:7px 11px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.08);font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.hauptbay .legal-hero h1{max-width:820px;margin:0 0 14px;font-size:clamp(34px,5vw,60px);line-height:1.03;letter-spacing:-.035em;color:#fff}
.hauptbay .legal-hero>p{max-width:800px;margin:0;color:rgba(255,255,255,.82);font-size:clamp(16px,2vw,19px);line-height:1.65}
.hauptbay .legal-meta{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:24px;color:rgba(255,255,255,.68);font-size:13px}
.hauptbay .legal-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:34px;margin-top:34px;align-items:start}
.hauptbay .legal-toc{position:sticky;top:100px;display:flex;flex-direction:column;gap:5px;padding:18px;border:1px solid #dbe7ef;border-radius:20px;background: var(--surface);box-shadow:0 12px 32px rgba(16,42,67,.07)}
.hauptbay .legal-toc strong{padding:5px 9px 10px;color:#102a43;font-size:14px}
.hauptbay .legal-toc a{padding:9px;border-radius:10px;color:#486581;font-size:13px;font-weight:700;text-decoration:none;transition:.18s ease}
.hauptbay .legal-toc a:hover{background:#eaf8f6;color:#087c70;transform:translateX(2px)}
.hauptbay .legal-content{min-width:0}
.hauptbay .legal-section{scroll-margin-top:110px;padding:30px 32px;margin-bottom:16px;border:1px solid #dfe9f0;border-radius:22px;background: var(--surface);box-shadow:0 12px 30px rgba(16,42,67,.055)}
.hauptbay .legal-section h2{margin:0 0 14px;color:#102a43;font-size:clamp(22px,3vw,29px);line-height:1.18;letter-spacing:-.02em}
.hauptbay .legal-section h3{color:#173f65}
.hauptbay .legal-section p,.hauptbay .legal-section li{color:#40566a;font-size:15px;line-height:1.78}
.hauptbay .legal-section a{color:#0a7f75;font-weight:750;text-decoration-thickness:1px;text-underline-offset:3px}
.hauptbay .legal-section ul,.hauptbay .legal-section ol{padding-left:22px}
.hauptbay .legal-contact-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0;padding:20px;border-radius:17px;background:#f3f7fa;border:1px solid #dce8ef}
.hauptbay .legal-contact-card p{margin:0}
.hauptbay .legal-note{margin:22px 0;padding:20px 22px;border-radius:17px;border-left:4px solid #13b8a6;background:#eaf8f6;color:#214f53}
.hauptbay .legal-note strong{display:block;margin-bottom:5px;color:#0a7068}
.hauptbay .legal-note p{margin:0;line-height:1.65}
.hauptbay .legal-note--warning{border-left-color:#ff6b4a;background:#fff3ef;color:#6b352b}
.hauptbay .legal-note--warning strong{color:#b33d27}
.hauptbay .legal-table-wrap{overflow-x:auto;margin:18px 0;border:1px solid #dfe9f0;border-radius:15px}
.hauptbay .legal-table-wrap table{width:100%;border-collapse:collapse;background:#fff}
.hauptbay .legal-table-wrap th,.hauptbay .legal-table-wrap td{padding:14px 16px;border-bottom:1px solid #e5edf2;text-align:left;vertical-align:top;font-size:14px;line-height:1.55}
.hauptbay .legal-table-wrap th{background:#f3f7fa;color:#102a43}
.hauptbay .legal-table-wrap tr:last-child td{border-bottom:0}
.hauptbay .legal-translation{margin-top:20px;border:1px solid #dfe9f0;border-radius:20px;background: var(--surface);overflow:hidden}
.hauptbay .legal-translation summary{padding:18px 22px;cursor:pointer;color:#102a43;font-weight:850;list-style-position:inside;background:#f7fafc}
.hauptbay .legal-translation__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding:24px}
.hauptbay .legal-translation__grid h3{margin:0 0 9px;color:#173f65}
.hauptbay .legal-translation__grid p{margin:0;color:#486581;line-height:1.7}
.hauptbay .legal-page .safety-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hauptbay .legal-page .safety-card{position:relative;padding:22px;border:1px solid #dfe9f0;border-radius:17px;background:linear-gradient(180deg,#fff,#f7fafc);box-shadow:none;color:inherit}
.hauptbay .legal-page .safety-card>span{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#102a43;color:#fff;font-weight:900;font-size:12px}
.hauptbay .legal-page .safety-card h3{margin:13px 0 7px;font-size:18px}
.hauptbay .legal-page .safety-card p{margin:0;font-size:14px;line-height:1.65}
.hauptbay .legal-checklist{list-style:none;padding-left:0!important}
.hauptbay .legal-checklist li{position:relative;padding:12px 14px 12px 42px;margin:8px 0;border-radius:13px;background:#f3f8fa}
.hauptbay .legal-checklist li:before{content:"✓";position:absolute;left:15px;top:12px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#13b8a6;color:#fff;font-size:12px;font-weight:900}
.hauptbay .legal-checklist--warning li:before{content:"!";background:#ff6b4a}
.hauptbay .safety-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.hauptbay .rule-section{display:grid;grid-template-columns:52px minmax(0,1fr);gap:18px}
.hauptbay .rule-number{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#2563eb,#13b8a6);color:#fff;font-size:13px;font-weight:900;box-shadow:0 10px 22px rgba(37,99,235,.2)}
.hauptbay .rule-section h2{margin-top:6px}
@media(max-width:900px){.hauptbay .legal-layout{grid-template-columns:1fr}.hauptbay .legal-toc{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hauptbay .legal-toc strong{grid-column:1/-1}.hauptbay .legal-contact-card{grid-template-columns:1fr}}
@media(max-width:640px){.hauptbay .legal-page{padding:18px 12px 54px}.hauptbay .legal-hero{padding:31px 22px;border-radius:23px}.hauptbay .legal-layout{gap:20px;margin-top:20px}.hauptbay .legal-toc{grid-template-columns:1fr;padding:12px}.hauptbay .legal-section{padding:22px 18px;border-radius:17px}.hauptbay .legal-translation__grid,.hauptbay .legal-page .safety-grid{grid-template-columns:1fr}.hauptbay .rule-section{grid-template-columns:42px minmax(0,1fr);gap:12px}.hauptbay .rule-number{width:40px;height:40px;border-radius:12px}.hauptbay .safety-actions .btn{width:100%;justify-content:center}}

/* ===== PWA / Mobile enhancements ===== */
@supports (padding: env(safe-area-inset-bottom)) {
  .hauptbay .site-header,
  .hauptbay .footer,
  .hauptbay .pwa-bottom-nav { padding-bottom: max(env(safe-area-inset-bottom), 8px); }
  body.hauptbay { padding-bottom: env(safe-area-inset-bottom); }
}

/* ===== Fallback for older car browsers (no CSS Grid) ===== */
@supports not (display: grid) {
  .hauptbay .listing-grid { display: flex; flex-wrap: wrap; }
  .hauptbay .ad-card { width: calc(33.333% - 16px); margin: 8px; }
  .hauptbay .footer-grid { display: flex; flex-wrap: wrap; }
  .hauptbay .footer-grid > div { width: 25%; min-width: 200px; }
}
@supports not (display: flex) {
  .hauptbay .listing-grid { display: block; }
  .hauptbay .ad-card { width: 100%; margin: 0 0 16px; display: block; }
}
.hauptbay .pwa-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;display:none;gap:0;padding:6px max(env(safe-area-inset-left),8px) max(env(safe-area-inset-bottom),8px) max(env(safe-area-inset-right),8px);background: var(--surface);border-top:1px solid #d8e3ee;box-shadow:0 -8px 22px rgba(15,52,96,.10)}
.hauptbay .pwa-bottom-nav__list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin:0;padding:0;list-style:none}
.hauptbay .pwa-bottom-nav__list a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;padding:6px 4px;color:#215987;text-decoration:none;font-size:11px;line-height:1.2;text-align:center}
.hauptbay .pwa-bottom-nav__list a svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8}
.hauptbay .pwa-bottom-nav__list a.is-active{color:#1f6fb2;font-weight:700}
@media (display-mode: standalone),(display-mode: minimal-ui){
  .hauptbay .pwa-bottom-nav{display:block}
  .hauptbay .mobile-bottom-nav{display:none !important}
  body.hauptbay{padding-bottom:64px}
}
.hauptbay .pwa-install-banner{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:60;display:none;gap:10px;align-items:center;width:min(440px,calc(100vw - 24px));padding:12px 14px;border-radius:14px;background:#102a43;color:#fff;box-shadow:0 16px 36px rgba(15,52,96,.30)}
.hauptbay .pwa-install-banner.is-visible{display:flex}
body.hauptbay:has(.pwa-install-banner.is-visible){padding-bottom:120px}
body.hauptbay:has(.cookie-banner:not([hidden]):not([hidden=""])){padding-bottom:160px}
body.hauptbay:has(.cookie-banner:not([hidden]):not([hidden=""])) .pwa-install-banner{bottom:calc(170px + env(safe-area-inset-bottom, 0px))}
body.hauptbay:has(.cookie-banner:not([hidden]):not([hidden=""])) .back-to-top{bottom:calc(150px + env(safe-area-inset-bottom, 0px))}
.hauptbay .pwa-install-banner__copy{flex:1;min-width:0;font-size:13px;line-height:1.4}
.hauptbay .pwa-install-banner__copy b{display:block;font-size:14px;margin-bottom:2px}
.hauptbay .pwa-install-banner button{border:0;border-radius:9px;padding:8px 14px;background:#1f6fb2;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.hauptbay .pwa-install-banner__close{background:transparent;color:#9bb3c9;padding:6px 8px}

/* Push notification opt-in prompt */
.hauptbay .push-prompt{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:65;display:none;gap:10px;align-items:center;width:min(440px,calc(100vw - 24px));padding:12px 14px;border-radius:14px;background:#102a43;color:#fff;box-shadow:0 16px 36px rgba(15,52,96,.30)}
.hauptbay .push-prompt:not([hidden]){display:flex}
.hauptbay .push-prompt__icon{width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;border-radius:10px;background:rgba(19,184,166,.18);color:#13b8a6}
.hauptbay .push-prompt__icon svg{width:20px;height:20px}
.hauptbay .push-prompt__copy{flex:1;min-width:0;font-size:13px;line-height:1.4}
.hauptbay .push-prompt__copy b{display:block;font-size:14px;margin-bottom:2px}
.hauptbay .push-prompt__actions{display:flex;flex:0 0 auto;gap:8px}
.hauptbay .push-prompt .button{min-height:38px;padding:0 12px;font-size:.85rem}

/* Mobile: raise prompts above bottom nav (67px + safe-area) */
@media (max-width: 900px) {
  .hauptbay .push-prompt,
  .hauptbay .pwa-install-banner { bottom: calc(67px + env(safe-area-inset-bottom, 0px) + 10px); z-index: 1700; }
  body.hauptbay:has(.push-prompt:not([hidden])) .mobile-bottom-nav,
  body.hauptbay:has(.pwa-install-banner.is-visible) .mobile-bottom-nav { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 680px) {
  .hauptbay .push-prompt,
  .hauptbay .pwa-install-banner { bottom: calc(67px + env(safe-area-inset-bottom, 0px) + 8px); width: calc(100vw - 16px); }
  .hauptbay .push-prompt { flex-direction: column; text-align: center; }
  .hauptbay .push-prompt__actions { flex-direction: column; width: 100%; }
  .hauptbay .push-prompt .button { width: 100%; }
}
@media (max-width: 430px) {
  .hauptbay .push-prompt { width: calc(100vw - 12px); }
}

/* ===== DLE 21.0: oEmbed error block + dynamic field buttons ===== */
.dlemedia-oembed-error {
    color: #555;
    background: #f0f0f0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1em;
    box-sizing: border-box;
}

.btn.bg-light {
    color: #333;
    background-color: #eae9e9;
    text-shadow: none;
    box-shadow: none;
}
.btn.bg-light.remove-dynamic-item {
    color: #ef5350;
}

/* ===== Large screen optimization (TV, Tesla, 4K monitors) ===== */
@media (min-width: 1500px) {
  .hauptbay .container { width: min(calc(100% - 60px), 1440px); }
  .hauptbay .listing-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hauptbay .hero__copy h1 { font-size: clamp(40px, 4vw, 64px); }
  .hauptbay .ad-card { padding: 16px; }
  .hauptbay .ad-card__title { font-size: 1.05rem; }
}
@media (min-width: 1920px) {
  .hauptbay .container { width: min(calc(100% - 80px), 1640px); }
  .hauptbay .listing-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.hauptbay { font-size: 17px; }
}
@media (min-width: 2560px) {
  .hauptbay .container { width: min(calc(100% - 100px), 1920px); }
  .hauptbay .listing-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  body.hauptbay { font-size: 18px; }
}
@media (min-width: 3840px) {
  .hauptbay .container { width: min(calc(100% - 120px), 2560px); }
  .hauptbay .listing-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  body.hauptbay { font-size: 20px; }
}

/* ===== TV remote navigation (focus-visible for D-pad) ===== */
@media (tv) {
  .hauptbay :focus-visible {
    outline: 4px solid #1f6fb2;
    outline-offset: 4px;
  }
  .hauptbay .ad-card:focus-visible,
  .hauptbay .button:focus-visible,
  .hauptbay a:focus-visible {
    transform: scale(1.05);
    transition: transform 150ms ease;
  }
}

/* ===== Input zoom prevention on iOS (font-size >= 16px) ===== */
@media (max-width: 680px) {
  .hauptbay input[type="text"],
  .hauptbay input[type="email"],
  .hauptbay input[type="password"],
  .hauptbay input[type="search"],
  .hauptbay input[type="tel"],
  .hauptbay input[type="url"],
  .hauptbay input[type="number"],
  .hauptbay select,
  .hauptbay textarea {
    font-size: 16px !important;
  }
}

/* ===== Hover optimization for touch devices ===== */
@media (hover: none) {
  .hauptbay .ad-card:hover { transform: none; box-shadow: var(--shadow-md); }
  .hauptbay .button:hover { transform: none; }
}

/* ===== How it works section ===== */
.hb-howto{padding:3.5rem 0;background:#f8fafc}
.hb-howto__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:1.5rem}
.hb-howto__step{position:relative;padding:2rem 1.5rem;border:1px solid #e2e8f0;border-radius:20px;background: var(--surface);box-shadow:0 4px 12px rgba(15,23,42,.04);transition:transform .25s,box-shadow .25s}
.hb-howto__step:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(15,23,42,.08)}
.hb-howto__num{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#1e40af);color:#fff;font-size:1.4rem;font-weight:800;margin-bottom:1rem;box-shadow:0 4px 12px rgba(37,99,235,.3)}
.hb-howto__step h3{margin:0 0 .5rem;color:#0f172a;font-size:1.15rem}
.hb-howto__step p{margin:0;color:#64748b;line-height:1.55;font-size:.95rem}

/* Seller rating */
.hauptbay .seller-rating { padding: 16px 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: var(--surface); margin-top: 12px; }
.hauptbay .seller-rating__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hauptbay .seller-rating__head h3 { font-size: .9rem; font-weight: 800; margin: 0; color: #334155; }
.hauptbay .seller-rating__score { font-size: 1.1rem; }
.hauptbay .seller-rating__score strong { font-weight: 900; color: #2563eb; }
.hauptbay .seller-rating__score span { font-size: .8rem; color: #94a3b8; }
.hauptbay .seller-rating__bars { display: grid; gap: 6px; margin-bottom: 12px; }
.hauptbay .seller-rating__bar { display: grid; grid-template-columns: 50px 1fr 30px; align-items: center; gap: 8px; font-size: .75rem; color: #64748b; }
.hauptbay .seller-rating__fill { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.hauptbay .seller-rating__fill div { height: 100%; background: #22c55e; border-radius: 3px; transition: width .3s; }
.hauptbay .seller-rating__empty { font-size: .85rem; color: #94a3b8; text-align: center; padding: 12px 0; }
.hauptbay .seller-rating__reviews { border-top: 1px solid #f1f5f9; padding-top: 12px; max-height: 200px; overflow-y: auto; }
.hauptbay .seller-rating__review { padding: 8px 0; border-bottom: 1px solid #f8fafc; }
.hauptbay .seller-rating__review:last-child { border-bottom: 0; }
.hauptbay .seller-rating__review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hauptbay .seller-rating__review-head b { font-size: .8rem; color: #334155; }
.hauptbay .seller-rating__review-head small { font-size: .72rem; color: #94a3b8; }
.hauptbay .seller-rating__review p { font-size: .82rem; color: #475569; margin: 2px 0 0; }
@media (prefers-color-scheme: dark) {
  .hauptbay .seller-rating { background: #1e293b; border-color: #334155; }
  .hauptbay .seller-rating__head h3 { color: #f1f5f9; }
  .hauptbay .seller-rating__fill { background: #334155; }
  .hauptbay .seller-rating__reviews { border-top-color: #334155; }
}

/* Author rating badge in listing cards */
.hauptbay .ad-card__author-rating { margin-top: 8px; }
.hauptbay .ad-rating-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.hauptbay .ad-rating-badge small { font-weight: 500; opacity: .7; }
.hauptbay .ad-rating-badge--excellent { background: #dcfce7; color: #15803d; }
.hauptbay .ad-rating-badge--good { background: #dbeafe; color: #1d4ed8; }
.hauptbay .ad-rating-badge--neutral { background: #fef9c3; color: #a16207; }
.hauptbay .ad-rating-badge--bad { background: #fee2e2; color: #b91c1c; }
.hauptbay .ad-rating-badge--new { background: var(--surface-3); color: #64748b; }
@media (prefers-color-scheme: dark) {
  .hauptbay .ad-rating-badge--excellent { background: #14532d; color: #86efac; }
  .hauptbay .ad-rating-badge--good { background: #1e3a8a; color: #93c5fd; }
  .hauptbay .ad-rating-badge--neutral { background: #713f12; color: #fde047; }
  .hauptbay .ad-rating-badge--bad { background: #7f1d1d; color: #fca5a5; }
  .hauptbay .ad-rating-badge--new { background: #334155; color: #cbd5e1; }
}

/* Share buttons */
.hauptbay .share-card { margin-top: 12px; padding: 16px 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: var(--surface); }
.hauptbay .share-card__head { font-size: .85rem; font-weight: 700; color: #334155; margin-bottom: 10px; }
.hauptbay .share-card__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.hauptbay .share-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 10px; font-size: .8rem; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s; }
.hauptbay .share-btn:hover { transform: translateY(-1px); }
.hauptbay .share-btn--wa { background: #25d366; color: #fff; }
.hauptbay .share-btn--tg { background: #0088cc; color: #fff; }
.hauptbay .share-btn--vk { background: #4a76a8; color: #fff; }
.hauptbay .share-btn--fb { background: #1877f2; color: #fff; }
.hauptbay .share-btn--copy { background: var(--surface-3); color: #475569; }
@media (prefers-color-scheme: dark) {
  .hauptbay .share-card { background: #1e293b; border-color: #334155; }
  .hauptbay .share-card__head { color: #f1f5f9; }
  .hauptbay .share-btn--copy { background: #334155; color: #cbd5e1; }
}

/* ===== Popular cities ===== */
.hb-cities{padding:2.5rem 0}
.hb-cities__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.75rem;margin-top:1.5rem}
.hauptbay .hb-city-card{display:flex;align-items:center;justify-content:center;padding:.85rem 1rem;border:1px solid #e2e8f0;border-radius:12px;background: var(--surface);color:#334155;font-weight:700;font-size:.95rem;text-decoration:none;transition:all .2s}
.hauptbay .hb-city-card:hover{border-color:#2563eb;background:#eff6ff;color:#1e40af;transform:translateY(-2px);box-shadow:0 4px 10px rgba(37,99,235,.1)}

/* ===== Services bar ===== */
.hb-services{padding:1rem 0;background: var(--surface);border-bottom:1px solid #e2e8f0}
.hb-services__bar{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding:4px 0}
.hb-services__bar::-webkit-scrollbar{height:4px}
.hb-services__bar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:2px}
.hauptbay .hb-svc-tile{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:84px;padding:10px 8px;border-radius:12px;text-decoration:none;color:#475569;background: var(--surface-2);border:1px solid transparent;transition:all .15s}
.hauptbay .hb-svc-tile:hover{background:#eff6ff;border-color:#dbeafe;color:#2563eb;transform:translateY(-1px)}
.hb-svc-tile__icon{font-size:1.5rem;line-height:1}
.hb-svc-tile__label{font-size:.72rem;font-weight:700;white-space:nowrap}

/* ===== Scroll animations ===== */
@keyframes hb-fade-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes hb-fade-in{from{opacity:0}to{opacity:1}}
@keyframes hb-shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
.hb-animate{opacity:0}
.hb-animate.hb-visible{animation:hb-fade-up .6s ease-out forwards}
.hb-category-card,.hb-howto__step,.hb-city-card,.ad-card,.promo-card{animation:hb-fade-up .5s ease-out both}

/* ===== Dark mode ===== */
@media (prefers-color-scheme:dark){
  .hauptbay{background:#0f172a;color:#e2e8f0}
  .hauptbay .site-header,.hauptbay .site-footer{background:#1e293b}
  .hauptbay .hero{background:linear-gradient(135deg,#0f172a,#1e3a5f)}
  .hauptbay .hero h1,.hauptbay .hero p{color:#f1f5f9}
  .hauptbay .category-card,.hauptbay .ad-card,.hauptbay .promo-card{background:#1e293b;border-color:#334155;color:#e2e8f0}
  .hauptbay .category-card b,.hauptbay .ad-card__title,.hauptbay .promo-card h3{color:#f1f5f9}
  .hauptbay .category-card small,.hauptbay .ad-card__meta,.hauptbay .promo-card p{color:#94a3b8}
  .hauptbay .hb-howto__step{background:#1e293b;border-color:#334155}
  .hauptbay .hb-howto__step h3{color:#f1f5f9}
  .hauptbay .hb-howto__step p{color:#94a3b8}
  .hauptbay .hauptbay .hb-city-card{background:#1e293b;border-color:#334155;color:#cbd5e1}
  .hauptbay .hauptbay .hb-city-card:hover{background:#1e3a5f;border-color:#2563eb;color:#93c5fd}
  .hauptbay .hauptbay-promo__wrap{background:#1e293b;border-color:#334155}
  .hauptbay .hauptbay-promo__title{color:#f1f5f9}
  .hauptbay .hauptbay-promo__text{color:#94a3b8}
  .hauptbay .advertise-banner{background:#1e293b;border-color:#334155}
  .hauptbay .advertise-banner h2{color:#f1f5f9}
  .hauptbay .advertise-banner p{color:#94a3b8}
  .hauptbay .market-filters{background:#1e293b;border-color:#334155}
  .hauptbay .market-toolbar h2{color:#f1f5f9}
  .hauptbay .market-toolbar p{color:#94a3b8}
}

/* ===== Skeleton loading for images ===== */
.hb-skeleton{background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%);background-size:200% 100%;animation:hb-shimmer 1.5s infinite}
@media (prefers-color-scheme:dark){.hb-skeleton{background:linear-gradient(90deg,#1e293b 25%,#334155 50%,#1e293b 75%);background-size:200% 100%}}

/* ===== Responsive ===== */
@media(max-width:820px){
  .hb-howto__grid{grid-template-columns:1fr}
  .hb-cities__grid{grid-template-columns:repeat(2,1fr)}
}

/* ===== Voice Search ===== */
.voice-search-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;background:transparent;color:#1f6fb2;cursor:pointer;border-radius:50%;flex:0 0 36px;transition:background .2s}
.voice-search-btn:hover{background:#e8f1ff}
.voice-search-btn.listening{background:#fee2e2;color:#dc2626;animation:hb-pulse 1s infinite}
.voice-search-btn svg{width:20px;height:20px;fill:currentColor}
.voice-search-status{position:absolute;left:16px;top:100%;margin-top:6px;padding:6px 12px;border-radius:8px;background:#102a43;color:#fff;font-size:.8rem;line-height:1.3;box-shadow:0 8px 20px rgba(16,42,67,.25);z-index:50;max-width:min(320px,calc(100vw - 32px))}
.voice-search-status.is-error{background:#b91c1c}
.hero-search{position:relative}
@keyframes hb-pulse{0%,100%{opacity:1}50%{opacity:.5}}

/* ===== Verified Badge ===== */
.verified-badge{display:inline-flex;align-items:center;gap:2px;padding:1px 6px;border-radius:99px;background:#1d9bf0;color:#fff;font-size:.7rem;font-weight:700;vertical-align:middle;margin-left:4px}
.verified-badge svg{width:12px;height:12px;fill:currentColor}

/* ===== Vertical Feed (TikTok-style) ===== */
.hb-feed{position:fixed;inset:0;background:#000;z-index:9999;overflow-y:scroll;scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch}
.hb-feed__close{position:fixed;top:16px;right:16px;z-index:10000;width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;border:0;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.hb-feed__item{height:100vh;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;position:relative;background:#111}
.hb-feed__card{max-width:420px;width:100%;margin:0 auto;padding:20px}
.hb-feed__img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:16px;background:#222}
.hb-feed__info{position:absolute;bottom:60px;left:0;right:0;padding:20px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.8))}
.hb-feed__title{font-size:1.1rem;font-weight:700;margin:0 0 4px}
.hb-feed__price{font-size:1.3rem;font-weight:800;color:#4ade80}
.hb-feed__nav{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:10000;display:flex;gap:8px}
.hb-feed__nav button{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.2);color:#fff;border:0;cursor:pointer;font-size:18px}

/* ===== Video in listing ===== */
.ad-detail__video{margin:18px 0;border-radius:14px;overflow:hidden;aspect-ratio:16/9;background:#000}
.ad-detail__video iframe{width:100%;height:100%;border:0}
.ad-detail__video video{width:100%;height:100%;object-fit:cover}


/* ===== Back to top ===== */
.back-to-top{position:fixed;bottom:20px;right:20px;z-index:9000;width:44px;height:44px;border-radius:50%;background:#1f6fb2;color:#fff;border:0;cursor:pointer;display:none;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.2);transition:background .2s,transform .2s}
.back-to-top:hover{background:#155896;transform:translateY(-2px)}
.back-to-top svg{width:22px;height:22px;fill:currentColor}

/* ===== Recently viewed ===== */
.recently-viewed{padding:24px 0;background: var(--surface-2);border-top:1px solid #e2e8f0}
.recently-viewed .listing-grid{grid-template-columns:repeat(4,1fr)}
@media(max-width:820px){.recently-viewed .listing-grid{grid-template-columns:repeat(2,1fr)}}
/* Recently viewed — compact strip */
.recently-viewed .ad-card{flex-direction:row;align-items:stretch}
.recently-viewed .ad-card__media{width:86px;min-height:66px;aspect-ratio:auto;flex:0 0 86px}
.recently-viewed .ad-card__media img,.recently-viewed .ad-card__media .ad-card__placeholder{height:100%}
.recently-viewed .ad-card__body{padding:8px 10px;min-width:0}
.recently-viewed .ad-card__title{font-size:13px;min-height:0;line-height:1.3;-webkit-line-clamp:2}
.recently-viewed .ad-card__price{font-size:13px;font-weight:600;margin-top:3px}
@media(max-width:560px){.recently-viewed .listing-grid{grid-template-columns:1fr}.recently-viewed .ad-card{display:flex;grid-template-columns:none;min-height:0}}


/* ===== Breadcrumbs schema ===== */
.breadcrumb-list{display:flex;flex-wrap:wrap;gap:4px;list-style:none;padding:0;margin:0 0 12px;font-size:.85rem}
.breadcrumb-list li{display:flex;align-items:center;gap:4px}
.breadcrumb-list li::after{content:'›';color:#94a3b8;margin-left:4px}
.breadcrumb-list li:last-child::after{content:''}
.breadcrumb-list a{color:#1f6fb2;text-decoration:none}
.breadcrumb-list a:hover{text-decoration:underline}.hauptbay .seller-rating__verified { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; font-size: .68rem; font-weight: 750; color: #0e8f83; background: #dff8f4; border-radius: 20px; white-space: nowrap; }
.hb-trust-chip--vip{background:linear-gradient(135deg,#fde68a,#f59e0b);color:#78350f;box-shadow:0 0 10px rgba(245,158,11,.45)}.hb-vip-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:99px;background:linear-gradient(135deg,#fde68a,#f59e0b);color:#78350f;font-size:.72rem;font-weight:800;letter-spacing:.03em;box-shadow:0 0 12px rgba(245,158,11,.5);vertical-align:middle}.seller-card__trust{display:block;margin-top:3px;color:var(--muted,#60758a);font-size:.78rem}

/* === Google OAuth button === */
.hb-google-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:42px;padding:.6rem 1rem;border:1px solid #dadce0;border-radius:10px;background: var(--surface);color:#3c4043;font:inherit;font-weight:600;font-size:.95rem;text-decoration:none;cursor:pointer;transition:background .15s,box-shadow .15s}
.hb-google-btn:hover{background:#f7f8f8;box-shadow:0 1px 3px rgba(60,64,67,.15)}
.hb-google-btn svg{flex:0 0 20px;width:20px;height:20px}
.hb-or-divider{display:flex;align-items:center;gap:10px;margin:.85rem 0 .7rem;color:#8a97a8;font-size:.82rem;text-transform:lowercase}
.hb-or-divider::before,.hb-or-divider::after{content:"";flex:1;height:1px;background:#dfe6ee}
.hb-trust-chip{display:inline-flex;align-items:center;gap:4px;margin-top:6px;margin-right:6px;padding:3px 8px;border-radius:99px;background:#eaf2ff;color:#1f6fb2;font-size:.72rem;font-weight:700;white-space:nowrap}.hb-trust-chip--phone{background:#dcfce7;color:#166534}.hb-trust-chip--identity{background:#e0e7ff;color:#3730a3}.hb-trust-chip--deals{background:#fef3c7;color:#92400e}.hb-trust-chip--rating{background:#fce7f3;color:#9d174d}.seller-card__trust{display:block;margin-top:4px;color:#60758a;font-size:.82rem}
.hb-status-badge{display:inline-block;margin-left:8px;padding:3px 10px;border-radius:99px;background: var(--line);color:#334155;font-size:.75rem;font-weight:800;text-transform:uppercase;vertical-align:middle}.hb-status-badge--active{background:#dcfce7;color:#166534}.hb-status-badge--sold{background: var(--line);color:#475569}.hb-status-badge--rented{background:#dbeafe;color:#1e40af}.hb-status-badge--withdrawn{background:#fee2e2;color:#991b1b}.hb-status-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px;padding:10px;border:1px solid #dbeafe;border-radius:10px;background:#f0f9ff}.hb-status-form select{min-height:34px;padding:0 8px;border:1px solid #bfdbfe;border-radius:8px;background:#fff}.hb-status-form button{padding:6px 12px;border:0;border-radius:8px;background:#1f6fb2;color:#fff;font-weight:700;cursor:pointer}.hb-status-form__msg{font-size:.82rem;font-weight:700}

.hauptbay .hb-compare-btn{margin-top:10px;padding:6px 10px;border:1px solid #bfdbfe;border-radius:8px;background:#f0f9ff;color:#1f6fb2;font:inherit;font-size:.78rem;font-weight:800;cursor:pointer;transition:.15s}.hauptbay .hb-compare-btn:hover{background:#dbeafe}.hb-compare-btn.is-added{background:#dcfce7;border-color:#86efac;color:#166534}
.hb-compare-bar{position:fixed;bottom:0;left:0;right:0;z-index:999;display:flex;justify-content:center;align-items:center;gap:12px;padding:12px 16px;background: var(--surface);border-top:1px solid #dbeafe;box-shadow:0 -4px 20px rgba(16,42,67,.1)}.hb-compare-bar__count{font-weight:800;color:#102a43}.hb-compare-bar__action{padding:6px 12px;border-radius:8px;background:#1f6fb2;color:#fff;font-weight:800;text-decoration:none}.hb-compare-bar__clear{padding:6px 12px;border:0;background:transparent;color:#60758a;font:inherit;cursor:pointer}
.hb-saved-search{margin-top:18px;padding-top:18px;border-top:1px dashed #dbeafe}.hb-saved-search p{margin:0 0 10px;color:#36536f;font-size:.92rem}.hb-saved-search form{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center}.hb-saved-search input{min-height:42px;min-width:240px;padding:0 12px;border:1px solid #bfdbfe;border-radius:10px;font:inherit}.hb-saved-search button{padding:10px 14px;font-size:.85rem}.hb-saved-search span{font-size:.85rem;font-weight:800}
.hb-password-strength{margin-top:6px}.hb-password-strength__bar{height:8px;border-radius:99px;background: var(--line);overflow:hidden}.hb-password-strength__bar span{display:block;height:100%;width:0;transition:.2s ease;background:#ef4444}.hb-password-strength small{display:block;margin-top:4px;color:#60758a;font-size:.82rem}.hb-password-generated{display:flex;gap:8px;margin:8px 0}.hb-password-generated input{flex:1;font-family:ui-monospace,monospace}
.hb-acctype{display:inline-block;padding:3px 10px;border-radius:12px;font-size:.72rem;font-weight:800;vertical-align:middle;margin-right:6px}
.hb-acctype--biz{background:#fef3c7;color:#92400e;border:1px solid #fde68a}
.hb-acctype--priv{background:#e0f2fe;color:#075985;border:1px solid #bae6fd}
.hb-danger-footnote{margin-top:14px;font-size:.75rem;color:#94a3b8;opacity:.75}.hb-danger-footnote a{color:#94a3b8;text-decoration:underline}.hb-danger-footnote a:hover{color:#991b1b}
#xfield_holder_forum_discuss{display:none!important}
.hb-discuss-promo{margin-top:18px}
.hb-discuss-toggle{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1.5px solid #dbeafe;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#f0fdfa);cursor:pointer;transition:150ms}
.hb-discuss-toggle:hover{border-color:#93c5fd;box-shadow:0 4px 14px rgba(59,130,246,.12)}
.hb-discuss-toggle input[type=checkbox]{width:20px;height:20px;accent-color:#1d4ed8;flex-shrink:0}
.hb-discuss-toggle__icon{font-size:1.4rem}
.hb-discuss-toggle__txt{display:flex;flex-direction:column;gap:2px}
.hb-discuss-toggle__txt b{font-size:.92rem;color:#1e3a8a}
.hb-discuss-toggle__txt small{font-size:.78rem;color:#64748b;line-height:1.35}
.hb-discuss-toggle:has(input:checked){border-color:#2563eb;background:linear-gradient(135deg,#dbeafe,#ccfbf1)}

.hb-vip-promo{padding:0 0 1.5rem}
.hb-vip-promo__card{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:18px 22px;border-radius:18px;background:linear-gradient(120deg,#78350f 0%,#b45309 45%,#f59e0b 100%);color:#fff;box-shadow:0 10px 30px rgba(180,83,9,.28);position:relative;overflow:hidden}
.hb-vip-promo__card:before{content:"";position:absolute;top:-40%;right:-5%;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.25),transparent 70%)}
.hb-vip-promo__txt b{display:block;font-size:1.08rem;margin-bottom:4px}
.hb-vip-promo__txt span{font-size:.88rem;opacity:.92;line-height:1.4;display:block;max-width:640px}
.hauptbay .hb-vip-promo__btn{flex-shrink:0;display:inline-flex;align-items:center;gap:8px;padding:11px 22px;border-radius:12px;background:#fff;color:#92400e;font-weight:800;font-size:.92rem;text-decoration:none;box-shadow:0 4px 12px rgba(0,0,0,.15);transition:transform .15s ease;animation:hbVipBtnGlow 2.4s ease-in-out infinite}
.hauptbay .hb-vip-promo__btn:hover{transform:translateY(-1px) scale(1.03);color:#92400e}
.hb-vip-promo__btnstar{font-style:normal;font-size:1.05rem;animation:hbVipBtnStar 2.4s ease-in-out infinite;filter:drop-shadow(0 0 4px rgba(245,158,11,.7))}
@keyframes hbVipBtnGlow{0%,100%{box-shadow:0 4px 12px rgba(0,0,0,.15)}50%{box-shadow:0 4px 20px rgba(255,255,255,.55),0 0 0 4px rgba(255,255,255,.18)}}
@keyframes hbVipBtnStar{0%,100%{transform:scale(1) rotate(0deg)}50%{transform:scale(1.2) rotate(18deg)}}
@media(prefers-reduced-motion:reduce){.hb-vip-promo__btn,.hb-vip-promo__btnstar{animation:none}}
@media(max-width:640px){.hb-vip-promo__card{flex-direction:column;align-items:flex-start}.hauptbay .hb-vip-promo__btn{width:100%;text-align:center}}

/* VIP grand-opening promo decorations (auto-removed after 2027-09-22) */
.hauptbay .hb-vip-topline{display:inline-flex;align-items:center;gap:5px;margin-left:14px;padding:3px 12px;border-radius:999px;background:linear-gradient(120deg,#f59e0b,#fbbf24);color:#451a03;font-size:.74rem;font-weight:800;text-decoration:none;white-space:nowrap;box-shadow:0 2px 8px rgba(245,158,11,.35);transition:transform .15s ease}
.hauptbay .hb-vip-topline:hover{transform:translateY(-1px);color:#451a03}
@media(max-width:640px){.hauptbay .hb-vip-topline{margin-left:0;margin-top:6px;font-size:.7rem}}
.site-header{position:relative}
.hb-vip-stars{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
.hb-vip-stars i{position:absolute;font-style:normal;color:#fbbf24;opacity:.5;text-shadow:0 0 6px rgba(251,191,36,.6);animation:hbTwinkle 3.2s ease-in-out infinite}
.hb-vip-stars i:nth-child(1){top:18%;left:6%;font-size:.8rem;animation-delay:0s}
.hb-vip-stars i:nth-child(2){top:60%;left:22%;font-size:.65rem;animation-delay:.6s}
.hb-vip-stars i:nth-child(3){top:25%;left:47%;font-size:.9rem;animation-delay:1.2s}
.hb-vip-stars i:nth-child(4){top:55%;right:28%;font-size:.7rem;animation-delay:1.8s}
.hb-vip-stars i:nth-child(5){top:20%;right:12%;font-size:.85rem;animation-delay:2.4s}
.hb-vip-stars i:nth-child(6){top:65%;right:6%;font-size:.6rem;animation-delay:3s}
@keyframes hbTwinkle{0%,100%{opacity:.15;transform:scale(.7) rotate(0deg)}50%{opacity:.85;transform:scale(1.15) rotate(15deg)}}
.hb-vip-promo__spark{position:absolute;font-style:normal;color:#fde68a;text-shadow:0 0 10px rgba(253,230,138,.8);animation:hbTwinkle 2.8s ease-in-out infinite;pointer-events:none}
.hb-vip-promo__spark.s1{top:12px;left:14px;font-size:1.1rem}
.hb-vip-promo__spark.s2{top:50%;left:38%;font-size:.8rem;animation-delay:.9s}
.hb-vip-promo__spark.s3{bottom:14px;right:26%;font-size:1rem;animation-delay:1.7s}
@media(prefers-reduced-motion:reduce){.hb-vip-stars i,.hb-vip-promo__spark{animation:none}}

.footer-brand__founded{font-size:.78rem;opacity:.65;margin-top:6px}

/* Cheaper-similar cards (fullstory.tpl + hb_cheaper.php) */
.hb-cheaper-card{display:flex;flex-direction:column;gap:6px;padding:14px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;text-decoration:none;color:#0f172a;transition:box-shadow .2s,border-color .2s}
.hb-cheaper-card:hover{border-color:#2563eb;box-shadow:0 6px 20px rgba(37,99,235,.12)}
.hb-cheaper-card b{font-size:.92rem;font-weight:700;line-height:1.3}
.hb-cheaper-card span{color:#166534;font-weight:800;font-size:.95rem}
.hb-badge{display:inline-block;padding:3px 10px;border-radius:99px;font-size:.72rem;font-weight:700;vertical-align:middle}

/* ── Safe video embeds (youtube/vimeo whitelist) ── */
.hb-video-frame{position:relative;aspect-ratio:16/9;background:#0f172a;border-radius:14px;overflow:hidden;margin:18px 0;box-shadow:0 4px 18px rgba(15,23,42,.18)}
.hb-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.hb-video-frame .hb-video-link{display:flex;align-items:center;justify-content:center;height:100%;padding:20px;color:#e2e8f0;font-size:.95rem;word-break:break-all;text-decoration:underline}
