:root {
  --ink: #17211f;
  --muted: #5c6662;
  --paper: #fbfaf6;
  --soft: #f1eee6;
  --line: #ddd7c9;
  --green: #24483c;
  --green-2: #386a58;
  --rose: #c96f89;
  --gold: #c49a4f;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 33, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 58px);
  color: var(--white);
  background: rgba(16, 24, 22, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(251, 250, 246, 0.96);
  box-shadow: 0 10px 35px rgba(23, 33, 31, 0.1);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.76;
}

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  font-size: 0.95rem;
  font-weight: 750;
}

.navigation a {
  position: relative;
  padding: 8px 0;
}

.navigation a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--rose);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.navigation a:hover::after,
.navigation a:focus-visible::after {
  transform: scaleX(1);
}

.navigation .social-link {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.navigation .social-link::after {
  display: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: 240px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.nav-dropdown-menu.is-open {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

.nav-dropdown-menu a + a {
  border-top: 1px solid var(--line);
}

.site-search {
  position: relative;
  width: clamp(132px, 15vw, 210px);
}

.site-search input {
  width: 100%;
  height: 36px;
  padding: 0 13px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  outline: none;
}

.site-search input::placeholder {
  color: currentColor;
  opacity: 0.76;
}

.site-header.is-scrolled .site-search input,
.site-header.is-open .site-search input,
.navigation.is-open .site-search input {
  background: var(--white);
  color: var(--ink);
}

.search-results {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, calc(100vw - 36px));
  max-height: min(480px, calc(100vh - 110px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-results a,
.search-empty {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
}

.search-results a::after {
  display: none;
}

.search-results a:hover,
.search-results a:focus-visible {
  background: var(--soft);
}

.search-result-type {
  display: block;
  color: var(--green-2);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-result-title {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.search-result-text,
.search-empty {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
}

.search-result-text {
  display: block;
  margin-top: 3px;
}

.search-empty {
  margin: 0;
}

.navigation .home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.navigation .home-link::after {
  display: none;
}

.navigation .header-contact-link {
  padding: 7px 12px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
}

.navigation .header-contact-link::after {
  display: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  min-width: 32px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.flag {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 31, 0.18);
  background-position: center;
  background-size: cover;
}

.flag-da {
  background:
    linear-gradient(90deg, transparent 0 31%, #fff 31% 43%, transparent 43%),
    linear-gradient(0deg, transparent 0 38%, #fff 38% 57%, transparent 57%),
    #c8102e;
}

.flag-gb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0h60v30H0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='m0 0 60 30m0-30L0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='m0 0 60 30m0-30L0 30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/g%3E%3C/svg%3E");
}

.language-switch a::after {
  display: none;
}

.language-switch a[aria-current="page"] {
  background: var(--white);
  color: var(--green);
}

.site-header.is-scrolled .language-switch a[aria-current="page"],
.site-header.is-open .language-switch a[aria-current="page"],
.navigation.is-open .language-switch a[aria-current="page"] {
  background: var(--green);
  color: var(--white);
}

.site-header.is-scrolled .navigation .header-contact-link,
.site-header.is-open .navigation .header-contact-link {
  border-color: var(--green);
}

.home-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: 0;
}

.home-icon::before {
  position: absolute;
  top: -6px;
  left: 1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: visible;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://impro.usercontent.one/appid/oneComWsb/domain/hhbeboer.dk/media/hhbeboer.dk/onewebmedia/IMG_5543.jpg?etag=%2261f563-6266d50f%22&sourceContentType=image%2Fjpeg&quality=85&progressive");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 34, 29, 0.76), rgba(16, 34, 29, 0.36) 48%, rgba(16, 34, 29, 0.18)),
    linear-gradient(0deg, rgba(16, 34, 29, 0.7), rgba(16, 34, 29, 0.05) 48%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 138px 0 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  line-height: 0.95;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
}

.hero-actions .button {
  padding-inline: 14px;
}

.hero-dropdown {
  position: relative;
}

.hero-dropdown > .button {
  position: relative;
  width: 100%;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding-right: 42px;
}

.dropdown-icon {
  width: 8px;
  height: 8px;
  margin-left: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.hero-dropdown .dropdown-icon {
  position: absolute;
  top: 50%;
  right: 22px;
  margin-left: 0;
  transform: translateY(-50%) rotate(45deg);
}

.hero-dropdown > .button[aria-expanded="true"] .dropdown-icon {
  transform: translateY(-50%) rotate(225deg);
}

.hero-dropdown-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: none;
  min-width: 220px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero-dropdown-menu.is-open {
  display: block;
}

.hero-dropdown-menu a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 750;
}

.hero-dropdown-menu a + a {
  border-top: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  font-weight: 800;
  margin-top: 30px;
}

.button.primary {
  background: var(--white);
  color: var(--green);
}

.hero-actions .button {
  align-items: flex-start;
  min-height: 76px;
  padding-top: 13px;
  text-align: center;
}

.button.secondary {
  color: var(--white);
}

.quick-links {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: min(1120px, calc(100% - 36px));
  margin: -46px auto 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-links > a,
.quick-link-group {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.quick-links > :last-child {
  border-right: 0;
}

.quick-links span,
.contact-card span,
.news-list time {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-links strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.quick-link-group a {
  display: block;
}

.quick-link-group a + a {
  margin-top: 6px;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 68px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section h2,
.history-band h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4vw, 4rem);
  line-height: 1.04;
}

.section-heading p:not(.eyebrow),
.split-section p,
.history-band p {
  color: var(--muted);
  font-size: 1.04rem;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 24px;
}

.feature-news,
.news-list article,
.info-panel,
.discount-panel,
.rent-panel,
.events-panel,
.contact-card,
.qa-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

.feature-news {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(36, 72, 60, 0.08), rgba(36, 72, 60, 0.94)),
    url("https://impro.usercontent.one/appid/oneComWsb/domain/hhbeboer.dk/media/hhbeboer.dk/onewebmedia/IMG_5543.jpg?etag=%2261f563-6266d50f%22&sourceContentType=image%2Fjpeg&quality=85&progressive");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-news h3,
.news-list h3,
.info-panel h3 {
  margin: 14px 0 8px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.text-link {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-list article {
  padding: 24px;
}

.news-list h3,
.news-list p {
  margin-bottom: 0;
}

.archive {
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.archive summary,
.qa-list summary {
  cursor: pointer;
  font-weight: 850;
}

.archive li + li {
  margin-top: 8px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 48px;
  align-items: start;
}

.info-panel {
  padding: 28px;
  box-shadow: var(--shadow);
}

.members-block,
.meetings-block,
.contact-br-block {
  margin-top: 28px;
}

.members-block h3,
.meetings-block h3,
.contact-br-block h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.members-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.members-block li + li {
  margin-top: 6px;
}

.discounts-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 48px;
  align-items: start;
}

.events-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 18px;
}

.events-section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.events-panel {
  min-height: 130px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.events-panel h3,
.events-panel p {
  margin: 0;
}

.events-panel p {
  margin-top: 10px;
}

.event-poster {
  margin: 18px 0 16px;
}

.event-poster img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f3;
}

.discounts-section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.discount-panel {
  min-height: 150px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.rent-section {
  padding-top: 54px;
}

.rent-panel {
  padding: 32px;
  box-shadow: var(--shadow);
}

.rent-panel h3 {
  margin: 26px 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.rent-panel h3:first-child {
  margin-top: 0;
}

.rent-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.rent-panel p + p {
  margin-top: 16px;
}

.discount-panel h3,
.discount-panel p {
  margin: 0;
}

.discount-panel p {
  margin-top: 10px;
}

.discount-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.discount-list li {
  border-top: 1px solid var(--line);
}

.discount-list a,
.discount-entry {
  display: block;
  padding: 14px 0;
}

.discount-list strong,
.discount-list span,
.discount-entry strong,
.discount-entry span {
  display: block;
}

.discount-list span,
.discount-entry span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.info-panel ul,
.archive ul {
  padding-left: 20px;
}

.info-panel li + li {
  margin-top: 12px;
}

.history-band {
  background: var(--green);
  color: var(--white);
  padding-right: max(18px, calc((100% - 1120px) / 2));
  padding-left: max(18px, calc((100% - 1120px) / 2));
}

.history-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 68px 0;
}

.history-band p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-section {
  padding-bottom: 60px;
}

.contact-grid {
  align-items: stretch;
}

.contact-card {
  flex: 1 1 260px;
  padding: 24px;
}

.contact-card strong,
.contact-card small {
  display: block;
}

.contact-card strong {
  margin: 8px 0;
  font-size: 1.18rem;
}

.contact-card small {
  color: var(--muted);
  font-size: 0.95rem;
}

.qa-section {
  padding-top: 54px;
}

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

.qa-list details {
  padding: 22px 24px;
}

.qa-list p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
}

.qa-list h4 {
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 4vw, 58px);
  background: #101816;
  color: var(--white);
}

.footer span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .navigation {
    position: absolute;
    top: 68px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .navigation.is-open {
    display: flex;
  }

  .navigation a {
    padding: 13px 10px;
  }

  .navigation .social-link {
    margin: 8px 10px;
    padding: 0;
  }

  .nav-dropdown {
    align-self: flex-start;
    margin: 6px 10px;
  }

  .nav-dropdown-toggle {
    padding: 7px 11px;
  }

  .nav-dropdown-menu {
    right: auto;
    left: 0;
  }

  .site-search {
    width: 100%;
    margin: 6px 0;
  }

  .site-search input {
    height: 42px;
  }

  .search-results {
    right: auto;
    left: 0;
    width: 100%;
    max-height: 360px;
  }

  .navigation .home-link {
    align-self: flex-start;
    margin: 6px 10px;
    padding: 7px 11px;
  }

  .navigation .header-contact-link {
    align-self: flex-start;
    margin: 6px 10px;
    padding: 7px 11px;
  }

  .language-switch {
    align-self: flex-start;
    margin: 6px 10px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-actions .button {
    min-height: 44px;
    padding: 10px 9px;
    font-size: 0.74rem;
  }

  .hero-content {
    padding-bottom: 34px;
  }

  .news-layout,
  .split-section,
  .discounts-section,
  .events-section,
  .history-band-inner {
    grid-template-columns: 1fr;
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-links > a,
  .quick-link-group {
    min-width: 0;
    padding: 16px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  .quick-links > :last-child {
    border-right: 0;
  }

  .quick-links span {
    font-size: 0.68rem;
  }

  .quick-links strong {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .quick-links a:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 72px 0;
  }

  .footer {
    display: block;
  }

  .footer a {
    display: inline-block;
    margin-top: 16px;
  }
}
