html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
  scrollbar-gutter: stable;
}

body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  overscroll-behavior-y: auto;
}

.site-header {
  position: relative;
  top: auto;
  z-index: 100;
}

/* Object detail pages use a compact header so the complete listing starts
   inside the first viewport and remains normally scrollable. */
body:has(.object-detail-hero) .nav {
  height: 126px;
  min-height: 126px;
  padding-top: 8px;
  padding-bottom: 8px;
}

body:has(.object-detail-hero) .brand img {
  width: 82px;
  height: 110px;
}

body:has(.object-detail-hero) .object-detail-hero {
  min-height: 0;
  padding-top: 38px;
  padding-bottom: 38px;
}

body:has(.object-detail-hero) .object-detail-navigation {
  position: static;
}

@media (max-width: 720px) {
  body:has(.object-detail-hero) .nav {
    height: 92px;
    min-height: 92px;
  }
  body:has(.object-detail-hero) .brand img {
    width: 60px;
    height: 78px;
  }
}

.site-header a,
.site-header button {
  position: relative;
  z-index: 101;
  pointer-events: auto;
}

.home-hero img,
.brand img {
  display: block;
}

.home-hero img {
  aspect-ratio: 1942 / 809;
}

.page-hero.location-hero {
  position: relative;
  min-height: 705px;
  background-color: var(--deep);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.image-caption,
.home-hero-image figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 7px 11px;
  background: rgba(4, 29, 54, .82);
  color: #fff;
  font: 700 14px/1.3 Arial, sans-serif;
  letter-spacing: .2px;
}

.home-hero-image {
  position: relative;
  margin: 0;
}

.home-hero-image img {
  width: 100%;
}

.page-hero.location-hero > div {
  max-width: 760px;
  text-shadow: 0 2px 16px rgba(3, 29, 54, .72);
}

.page-hero.main-section-hero {
  min-height: 645px;
  background-position: center 45%;
  transition: background-image .25s ease;
}

.navlinks a {
  padding: 12px 16px;
  border: 1px solid transparent;
}

.navlinks a:hover,
.navlinks a:focus-visible,
.navlinks a[aria-current="page"] {
  color: #fff;
  background: var(--blue);
  box-shadow: none;
}

.navlinks .nav-cta:not([aria-current="page"]) {
  background: transparent;
  border: 1px solid transparent;
  color: #000 !important;
}

.navlinks .nav-cta[aria-current="page"],
.navlinks .nav-cta:hover {
  color: #fff !important;
  background: var(--blue);
}

.imag-feed {
  padding: 70px max(28px, calc((100vw - 1124px) / 2));
  background: #e8f3fd;
  border-top: 1px solid var(--line);
}

.imag-feed-heading {
  max-width: 760px;
}

.imag-feed-heading h2 {
  margin: 10px 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.imag-object-feed {
  min-height: 520px;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px #082d5012;
}

.search-intro {
  padding-bottom: 18px;
}

.search-intro > p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
}

.withdrawal h2 { margin-top: 42px; }
.withdrawal h2:first-child { margin-top: 0; }
.withdrawal address {
  margin: 22px 0;
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: var(--pale);
  font-style: normal;
}
.withdrawal-form {
  margin-top: 50px;
  padding: 34px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 40px #082d5012;
}
.withdrawal-form .form-line {
  min-height: 34px;
  margin: 6px 0 22px;
  border-bottom: 1px solid var(--ink);
}
.withdrawal-form .form-line.short { max-width: 260px; }
.withdrawal-form .form-note { color: var(--muted); font-size: 14px; }
.withdrawal-form .print-button { border: 0; cursor: pointer; }
.withdrawal-form .outline-mail {
  margin-left: 10px;
  color: var(--blue);
  border-color: var(--blue);
}
@media print {
  .site-header, .page-hero, .imag-feed, footer, .withdrawal > h2, .withdrawal > p, .withdrawal > address, .print-button, .outline-mail { display: none !important; }
  .withdrawal-form { margin: 0; padding: 0; border: 0; box-shadow: none; }
}
@media (max-width: 620px) {
  .withdrawal-form { padding: 22px; }
  .withdrawal-form .outline-mail { display: block; margin: 12px 0 0; text-align: center; }
}
.region-card{aspect-ratio:auto;min-height:62px;padding:9px 14px;display:flex;flex-direction:column;justify-content:space-between}
.city-overview-heading{margin-top:64px}.major-city-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:30px}@media(max-width:960px){.major-city-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.major-city-grid{grid-template-columns:1fr}}
.contact-band{padding-top:40px;padding-bottom:40px}

.residential-locations {
  max-width: none;
  background: #f6f9fc;
  padding-left: max(28px, calc((100vw - 1124px) / 2));
  padding-right: max(28px, calc((100vw - 1124px) / 2));
}
.residential-locations > h2,
.residential-locations > .location-intro,
.residential-locations > .kicker,
.residential-locations > .location-note {
  max-width: 1124px;
  margin-left: auto;
  margin-right: auto;
}
.location-intro { color: var(--muted); }
.location-levels {
  max-width: 1124px;
  margin: 32px auto 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.location-level {
  background: #fff;
  padding: 28px;
  border-top: 5px solid var(--blue);
  box-shadow: 0 10px 30px #082d5012;
}
.location-level.top { border-top-color: var(--gold); }
.location-level > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}
.location-level h3 { font-size: 27px; margin: 16px 0 10px; }
.location-level ul { margin: 0 0 18px; padding-left: 20px; color: var(--deep); font-weight: 700; }
.location-level p { color: var(--muted); margin-bottom: 0; }
.location-note { padding: 16px 18px; border-left: 4px solid var(--gold); background: #fff; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .location-levels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .location-levels { grid-template-columns: 1fr; } }

@media (min-width: 961px) {
  .nav {
    min-height: 132px;
    height: auto;
  }

  .navlinks {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, auto);
    align-items: center;
    row-gap: 6px;
    margin-left: 24px;
  }

  .nav-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 22px;
  }

  .nav-row > a:not(.nav-cta) {
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 10px 14px;
    text-align: center;
  }

  .navlinks .nav-cta {
    margin-left: 0;
    text-align: center;
    white-space: nowrap;
  }
}

@media (max-width: 960px) {
  .nav-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}
/* Reliable return navigation on all subpages */
.history-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px 0;
}
.history-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: #173b5f;
  cursor: pointer;
  font: 600 15px/1.4 Arial, sans-serif;
  padding: 8px 0;
  text-align: left;
}
.history-back:hover,
.history-back:focus-visible {
  color: #a9842b;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 640px) {
  .history-nav { padding: 10px 18px 0; }
}

.knowledge-directory {
  max-width: 1240px;
}
.knowledge-search {
  margin-bottom: 34px;
  padding: 24px;
  background: var(--pale);
  border-left: 5px solid var(--gold);
}
.knowledge-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
  font-weight: 800;
}
.knowledge-search > div {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
}
.knowledge-search input {
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c9d7e4;
  background: #fff;
}
.knowledge-search button { border: 0; cursor: pointer; }
.knowledge-result-count { margin: 10px 0 0; color: var(--muted); }
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.knowledge-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  background: #fff;
}
.knowledge-card h2 { font-size: 25px; line-height: 1.2; }
.knowledge-card[hidden] { display: none; }
.knowledge-empty { padding: 28px; background: var(--pale); }
.knowledge-breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.knowledge-breadcrumb a { color: var(--blue); font-weight: 700; }
.knowledge-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 54px 28px 86px;
}
.knowledge-article header h1 { font-size: clamp(38px,5vw,60px); line-height: 1.08; }
.knowledge-lead { font-size: 20px; color: var(--deep); }
.knowledge-meta,.knowledge-note { color: var(--muted); font-size: 14px; }
.knowledge-article > section { margin-top: 48px; scroll-margin-top: 24px; }
.knowledge-article > section h2,.knowledge-toc h2 { font-size: clamp(28px,4vw,38px); }
.knowledge-article a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.knowledge-article .button { color: #fff; text-decoration: none; }
.knowledge-toc {
  margin: 34px 0 46px;
  padding: 24px;
  background: var(--pale);
  border-left: 5px solid var(--gold);
}
.knowledge-toc ul,.knowledge-article section ul { padding-left: 22px; }
.knowledge-table-wrap { overflow-x: auto; margin: 22px 0; }
.knowledge-table-wrap table { width: 100%; border-collapse: collapse; }
.knowledge-table-wrap th,.knowledge-table-wrap td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.knowledge-table-wrap th { background: var(--pale); color: var(--deep); }
.knowledge-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.knowledge-tool-grid article { padding: 20px; background: var(--pale); }
.knowledge-cta { padding: 28px; background: var(--pale); border-left: 5px solid var(--gold); }
@media (max-width: 960px) { .knowledge-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) {
  .knowledge-grid,.knowledge-tool-grid,.knowledge-search > div { grid-template-columns: minmax(0,1fr); }
  .knowledge-article { padding-left: 20px; padding-right: 20px; }
}

#bundeslaender, #staedte { scroll-margin-top: 180px; }
