:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #5a5a5a;
  --line: #e1e1e1;
  --accent: #111111;
  --pad: clamp(18px, 6vw, 90px);
  --max: 1200px;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --serif: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--fg);
  background-color: var(--bg);
  line-height: 1.6;
}

body.home {
  position: relative;
}

body.home main {
  position: relative;
}

body.home main::before {
  content: "";
  position: absolute;
  inset: -20px 0;
  background-image: url("images/hgb.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05;
  filter: grayscale(1);
  z-index: -1;
}

body.mid-scrim main {
  position: relative;
}

body.mid-scrim main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.04), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
  opacity: 1;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.68rem;
  gap: 16px;
}

.menu-link {
  margin-left: auto;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

.lang {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.lang .active {
  color: var(--fg);
}

.divider {
  padding: 4px 0 14px;
  color: var(--muted);
  letter-spacing: 0.6em;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px 4px;
  padding-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  justify-items: start;
  text-align: left;
}

.logo {
  display: inline-flex;
  align-items: center;
  margin-left: 15px;
  align-self: flex-end;
  margin-bottom: -6px;
}

.logo img {
  height: 86px;
  width: auto;
  display: block;
}

.menu-title {
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-block;
  margin: 0;
  line-height: 0.9;
}

.menu-sub {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  text-align: left;
  margin: 0;
  line-height: 0.9;
}

.hero {
  padding: 110px 0 70px;
}

.hero-compact {
  padding: 110px 0 70px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-weight: 600;
  margin: 0 0 22px;
}

.hero-title span {
  display: block;
}

.hero-copy {
  max-width: 680px;
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.section {
  padding: 40px 0 70px;
}

.section h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin: 0 0 12px;
}

.section p {
  margin: 0 0 16px;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.text-link {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

.home-cta-link {
  border-bottom: 0;
  padding-bottom: 0;
}

.text-link.ghost {
  border-bottom-color: transparent;
  position: relative;
  padding-right: 12px;
}

.text-link.ghost::after {
  content: "→";
  position: absolute;
  right: 0;
  top: -1px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #000;
  background: #fff url("images/hmbicon.png") center/24px 24px no-repeat;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: none;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.list-item h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.62rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.facts {
  display: grid;
  gap: 18px;
  align-content: start;
}

.fact-value {
  font-size: 2.2rem;
  font-family: var(--serif);
  letter-spacing: 0.02em;
}

.fact-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.62rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 16px;
}

.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  margin-bottom: 4px;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  line-height: 1;
}

.contact-icon-mail {
  font-size: 2.0em;
}

.contact-icon-phone {
  font-size: 0.9em;
}


.contact-form {
  display: grid;
  gap: 14px;
  margin: 18px 0 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--fg);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--fg);
}

.contact-form button {
  justify-self: start;
}

.btn {
  background: #ffffff;
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  cursor: pointer;
}

.slider {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f7f7;
  --slide-h: clamp(240px, 50vw, 520px);
  height: var(--slide-h);
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
}

.slide {
  min-width: 100%;
  position: relative;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.slide-caption {
  position: absolute;
  left: 24px;
  bottom: 18px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--fg);
  background: rgba(255, 255, 255, 0.92);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}

.slider-btn.prev {
  left: 16px;
}

.slider-btn.next {
  right: 16px;
}

.slider-dots {
  display: none;
}

.project-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 16px;
  align-items: stretch;
}

.slider-thumbs {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 12px;
  height: var(--slide-h);
  align-content: stretch;
}

.project-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.62rem;
  cursor: pointer;
  text-align: left;
}

.slider-thumb {
  border: 1px solid var(--line);
  padding: 0;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  padding: 0;
}

.slider-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.slider-thumb.logo img {
  padding: 0;
  object-fit: fill;
}

.slider-thumb.logo {
  position: relative;
}

.slider-thumb.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.slider-thumb.active {
  border-color: var(--fg);
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: transparent;
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--fg);
}

.site-footer {
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  display: block;
  opacity: 0.3;
}

.footer-copyright {
  letter-spacing: 1px;
}

.footer-legal {
  margin-top: 11px;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: left;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  margin-top: 12px;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .menu-grid {
    display: none;
  }

  .menu-grid.is-open {
    display: grid;
  }

  .menu-sub {
    display: none;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .topbar {
    align-items: flex-end;
    gap: 16px;
  }

  .menu-link {
    margin-left: 0;
  }

  .logo {
    align-self: flex-end;
    margin-bottom: -6px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .slider-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  :root {
    --pad: clamp(16px, 5vw, 36px);
  }

  .hero,
  .hero-compact {
    padding: 72px 0 50px;
  }

  .hero-title {
    font-size: clamp(1.2rem, 7vw, 2.6rem);
    line-height: 1.05;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px 20px;
  }

  .slider {
    --slide-h: clamp(220px, 60vw, 360px);
  }

  .slider-btn {
    width: 32px;
    height: 32px;
  }

  .slider-thumbs {
    gap: 10px;
  }

  .footer-brand img {
    height: 34px;
  }
}

@media (max-width: 420px) {
  .topbar {
    gap: 8px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .text-link {
    letter-spacing: 0.18em;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    background-size: 20px 20px;
  }
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-chip {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: #ffffff;
}

@media (max-width: 820px) {
  .site-footer .container {
    flex-direction: column;
    align-items: center;
  }

  .footer-meta {
    margin-top: 10px;
  }
}

.legal-title {
  font-size: 1em;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 6px;
  line-height: 1.25;
  color: var(--fg);
}

.section h2.legal-title {
  text-transform: none;
  letter-spacing: 0;
}

.is-collapsed-project {
  display: none;
}

.projects-more-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  box-sizing: border-box;
  margin-top: 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 8px;
  text-align: left;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.62rem;
  color: var(--muted);
  cursor: pointer;
}

.section p.impressum-compact-title {
  margin: 0;
}

.projects-more-panel {
  border-bottom: 1px solid var(--line);
  margin-top: -1px;
}

.projects-year-folder {
  border-bottom: 1px solid var(--line);
}

.projects-year-folder:last-child {
  border-bottom: none;
}

.projects-year-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.62rem;
  color: var(--muted);
}

.projects-year-summary::-webkit-details-marker {
  display: none;
}

.projects-year-content {
  padding: 0 0 4px;
}

.projects-year-content .list-item {
  margin-left: 0;
}

.projects-year-empty {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.projects-year-content .list-item:last-child {
  border-bottom: none;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  border: none;
  font-weight: 700;
}

.footer-legal a:hover {
  text-decoration: none;
}

.rental-box {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.75);
}

.rental-box h2 {
  margin: 0 0 10px;
}

.rental-box p {
  margin: 0;
}

.welcome-widget {
  max-width: 760px;
  margin: 0 auto;
}

.welcome-trigger {
  margin-bottom: 14px;
}

.welcome-card {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 18px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.welcome-avatar {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 1px solid var(--line);
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%);
}

.welcome-avatar::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #1e1e1e;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.welcome-avatar::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 20px;
  border-radius: 20px 20px 0 0;
  border: 2px solid #1e1e1e;
  border-bottom: 0;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.welcome-line {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
}

.welcome-lang-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.welcome-lang {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 7px 10px;
  font-family: var(--sans);
  font-size: 0.82rem;
  cursor: pointer;
}

.welcome-lang.is-active {
  border-color: var(--fg);
  font-weight: 700;
}

.welcome-detail {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.95rem;
}
