/* Hauptbay 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: #fff; }
.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: #fff;
  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: 16px; }
.hauptbay .category-card {
  min-height: 122px;
  border-color: var(--line);
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(16, 42, 67, .055);
}
.hauptbay .category-card::after {
  position: absolute;
  inset: auto 16px 0 16px;
  height: 3px;
  content: "";
  border-radius: 3px 3px 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(-5px); border-color: rgba(37, 99, 235, .28); box-shadow: var(--shadow-md); }
.hauptbay .category-card:hover::after { opacity: 1; transform: scaleX(1); }
.hauptbay .category-card__icon { width: 50px; height: 50px; border-radius: 16px; }
.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-filters {
  top: 138px;
  padding: 22px;
  border-color: var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(16, 42, 67, .07);
}
.hauptbay .market-filters input,
.hauptbay .market-filters select,
.hauptbay .login_form input {
  border-color: var(--line-strong);
  border-radius: 12px;
}
.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 .listing-grid { gap: 20px; }
.hauptbay .ad-card {
  border-color: var(--line);
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(16, 42, 67, .06);
}
.hauptbay .ad-card:hover { transform: translateY(-5px); border-color: rgba(37, 99, 235, .30); box-shadow: var(--shadow-md); }
.hauptbay .ad-card__media { background: linear-gradient(145deg, #eaf2ff, #eef7f6); }
.hauptbay .ad-card__badge { border-radius: 10px; background: rgba(16, 42, 67, .88); }
.hauptbay .ad-card__favorite { color: var(--haupt-navy); }
.hauptbay .ad-card__category { color: var(--bay-teal-strong); }
.hauptbay .ad-card__price { color: var(--haupt-navy); }
.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 {
  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(3, 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: static; }
  .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: 1fr; }
  .hauptbay .category-card { min-height: 96px; }
  .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 { 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: 78px; 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: #fff;
  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: #fff; }
.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; gap: 17px; margin: 0; padding: 0; list-style: none; }
.hauptbay .auth-fields .form-group { display: grid; 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: #fff;
  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: 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; }
}

/* ===== Hauptbay 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:#fff;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:#fff;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:#fff;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}}
