@font-face {
  font-family: "Fira Sans";
  src: url("/template-assets/fonts/fira-sans-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("/template-assets/fonts/fira-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("/template-assets/fonts/fira-sans-regular-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("/template-assets/fonts/fira-sans-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("/template-assets/fonts/fira-sans-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --primary-color: #1f5a47;
  --primary-light: #4f806c;
  --primary-dark: #12372d;
  --secondary-color: #257f9d;
  --accent-color: #e5a43b;
  --text-color: #20312d;
  --text-light: #63736e;
  --heading-color: #173b31;
  --background-color: #ffffff;
  --surface: #f2f6f4;
  --surface-strong: #e4eee9;
  --border: #cedbd5;
  --font-sans: "Fira Sans", Arial, sans-serif;
  --font-display: "Fira Sans", Arial, sans-serif;
  --content-width: 1180px;
  --reading-width: 780px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-color);
  background: var(--background-color);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

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

a {
  color: var(--primary-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--heading-color);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.75rem);
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.65rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1.25rem;
}

.section-shell {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 8px;
  left: 8px;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--primary-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(31, 90, 71, 0.13);
  background: rgba(255, 255, 255, 0.96);
}

.site-home .site-header {
  position: absolute;
  width: 100%;
  border-bottom-color: rgba(255, 255, 255, 0.3);
  background: rgba(9, 35, 29, 0.55);
  color: #fff;
}

.site-header__inner {
  width: min(calc(100% - 48px), var(--content-width));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
  color: var(--heading-color);
  text-decoration: none;
}

.site-home .brand {
  color: #fff;
}

.brand:hover {
  color: var(--primary-color);
}

.site-home .brand:hover {
  color: #fff;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-logo--dark {
  display: none;
}

.site-home .brand-logo--light {
  display: none;
}

.site-home .brand-logo--dark {
  display: block;
}

.brand span {
  display: grid;
  line-height: 1.12;
}

.brand strong {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand small {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 0.65rem 0.8rem;
  color: var(--text-color);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.site-home .nav-menu a {
  color: #fff;
}

.nav-menu a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 0.15rem;
  background: var(--accent-color);
  transition: width 180ms ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.burger-menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--primary-dark);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-home .burger-menu span {
  background: #fff;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  min-height: min(860px, 92vh);
  overflow: hidden;
  color: #fff;
  background: var(--primary-dark);
}

.home-hero__image,
.home-hero__shade {
  position: absolute;
  inset: 0;
}

.home-hero__image {
  background-image: url("/uploads/images/koenigsbruch/hero.jpg");
  background-position: center 58%;
  background-size: cover;
}

.home-hero__shade {
  background: linear-gradient(90deg, rgba(7, 28, 23, 0.84) 0%, rgba(7, 28, 23, 0.54) 48%, rgba(7, 28, 23, 0.12) 78%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
  padding-top: clamp(160px, 23vh, 220px);
}

.home-hero__mark {
  width: 174px;
  height: 174px;
  margin-bottom: 1.4rem;
  object-fit: contain;
}

.home-hero h1 {
  max-width: 860px;
  margin: 0 0 1.5rem;
  color: #fff;
  text-wrap: balance;
}

.home-hero__lead {
  max-width: 650px;
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button--primary,
.btn-primary {
  color: #fff;
  background: var(--primary-color);
}

.button--primary:hover,
.btn-primary:hover {
  color: #fff;
  background: var(--primary-dark);
}

.home-hero .button--primary {
  color: var(--primary-dark);
  background: var(--accent-color);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.button--light:hover {
  color: var(--primary-dark);
  background: #fff;
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - var(--content-width)) / 2));
  bottom: 30px;
  width: 38px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
}

.hero-scroll span {
  display: block;
  width: 5px;
  height: 5px;
  margin: 12px auto;
  border-radius: 50%;
  background: #fff;
}

.home-intro {
  padding-block: clamp(5rem, 10vw, 9rem);
  text-align: center;
}

.home-intro h2,
.home-intro > p:last-child {
  max-width: 850px;
  margin-inline: auto;
}

.home-intro > p:last-child {
  color: var(--text-light);
  font-size: 1.18rem;
}

.home-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.home-story .content-block {
  min-height: 430px;
  margin: 0;
  background: var(--surface);
}

.home-story .content-block:nth-child(4n + 1),
.home-story .content-block:nth-child(4n + 4) {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.home-story .content-block:nth-child(4n + 1) strong,
.home-story .content-block:nth-child(4n + 4) strong {
  color: var(--primary-color);
}

.home-story .content-block:nth-child(4n + 2),
.home-story .content-block:nth-child(4n + 3) {
  overflow: hidden;
}

.home-story .image-block,
.home-story .block-image {
  width: 100%;
  height: 100%;
}

.home-story .block-image {
  min-height: 430px;
  object-fit: cover;
}

.home-story .text-content p {
  font-size: clamp(1.05rem, 1.6vw, 1.23rem);
}

.home-stance {
  color: #fff;
  background: var(--primary-dark);
}

.home-stance__inner {
  max-width: 940px;
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
}

.home-stance .eyebrow {
  color: var(--accent-color);
}

.home-stance h2 {
  color: #fff;
}

.home-stance p:last-child {
  font-size: 1.2rem;
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(5rem, 10vw, 9rem);
}

.home-actions h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.home-actions__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.home-actions__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 750;
}

.text-link span {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-strong);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: max(32px, calc((100vw - var(--content-width)) / 2));
  width: 300px;
  height: 300px;
  background: url("/uploads/images/koenigsbruch/logo.png") center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
  transform: translateY(-50%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.page-hero h1 {
  max-width: 960px;
  margin: 0 0 1.3rem;
  font-size: clamp(2.55rem, 6vw, 5rem);
  text-wrap: balance;
}

.page-hero__inner > p:last-child {
  max-width: 720px;
  color: var(--text-light);
  font-size: 1.1rem;
}

.page-content {
  max-width: var(--reading-width);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.page-content .content-block {
  margin-bottom: 2.8rem;
}

.page-content .content-block:last-of-type {
  margin-bottom: 0;
}

.page-content h2 {
  margin-top: 3.5rem;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.page-content h3 {
  margin-top: 2.6rem;
}

.page-content h4 {
  margin: 2.2rem 0 0.7rem;
}

.page-content h5 {
  margin: 2rem 0 0.35rem;
  color: var(--primary-color);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.page-content .text-content ul,
.page-content .text-content ol {
  padding-left: 1.25rem;
}

.page-content blockquote {
  margin: 2rem 0;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 4px solid var(--accent-color);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.image-block {
  margin: 2rem 0;
}

.block-image {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
}

.image-lightbox .block-image,
.gallery-image {
  cursor: zoom-in;
}

.image-caption {
  margin-top: 0.65rem;
  color: var(--text-light);
  font-size: 0.82rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.contact-form-block {
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact-form-block h3 {
  margin-top: 0;
}

.contact-form {
  display: grid;
  gap: 1.2rem;
}

.newsletter-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 750;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #aebeb7;
  border-radius: 3px;
  color: var(--text-color);
  background: #fff;
  font: inherit;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(37, 127, 157, 0.2);
  border-color: var(--secondary-color);
}

.form-result {
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid #b24a3b;
  background: #fff;
}

.form-result.success {
  border-color: var(--primary-color);
}

.article-back {
  display: none;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

body[class*="page-news-"] .article-back {
  display: block;
}

.page-news .text-content h5 {
  margin-top: 2.4rem;
}

.page-news .text-content h4 {
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

.page-legals .page-content,
.page-privacy .page-content,
.page-flyer-2-additional-material .page-content {
  max-width: 900px;
}

.site-footer {
  color: #d9e5e0;
  background: #102e26;
}

.site-footer a {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 0.8fr;
  gap: 4rem;
  padding-block: 4.5rem;
}

.site-footer__brand {
  display: flex;
  gap: 1.2rem;
}

.site-footer__brand img {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.site-footer__brand strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.site-footer__brand p {
  max-width: 430px;
  margin-top: 0.5rem;
}

.site-footer h2 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.35rem;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
}

.site-footer__bottom p {
  margin: 0;
}

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  padding: 5vh 6vw;
  color: #fff;
  background: rgba(4, 15, 12, 0.96);
}

.lightbox-content {
  width: 100%;
  height: 82vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 24px;
  font-size: 2.5rem;
}

.lightbox-nav {
  top: 50%;
  font-size: 3.2rem;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption,
.lightbox-counter {
  text-align: center;
}

.spacer-small {
  height: 1rem;
}

.spacer-medium {
  height: 2rem;
}

.spacer-large {
  height: 4rem;
}

@media (max-width: 900px) {
  .burger-menu {
    display: block;
  }

  .nav-menu {
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    width: min(84vw, 360px);
    height: 100vh;
    padding: 100px 30px 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    background: #fff;
    box-shadow: -12px 0 35px rgba(7, 28, 23, 0.18);
    transform: translateX(110%);
    transition: transform 220ms ease;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .site-home .nav-menu a,
  .nav-menu a {
    padding: 0.8rem;
    color: var(--text-color);
    font-size: 1.05rem;
  }

  .home-story {
    grid-template-columns: 1fr;
  }

  .home-story .content-block {
    min-height: auto;
  }

  .home-story .content-block:nth-child(4n + 1),
  .home-story .content-block:nth-child(4n + 4) {
    min-height: 340px;
  }

  .home-story .block-image {
    min-height: 320px;
  }

  .home-actions {
    grid-template-columns: 1fr 0.7fr;
  }

  .home-actions > div:last-child {
    grid-column: 1 / -1;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 70px;
  }

  body {
    font-size: 16px;
  }

  .section-shell,
  .site-header__inner,
  .home-hero__content {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 0.67rem;
  }

  .brand small {
    font-size: 1.08rem;
  }

  .home-hero {
    min-height: 760px;
  }

  .home-hero__image {
    background-position: 57% center;
  }

  .home-hero__shade {
    background: linear-gradient(180deg, rgba(7, 28, 23, 0.42) 0%, rgba(7, 28, 23, 0.84) 76%);
  }

  .home-hero__content {
    padding-top: 155px;
  }

  .home-hero__mark {
    width: 132px;
    height: 132px;
  }

  .home-hero h1 {
    font-size: 2.35rem;
    overflow-wrap: anywhere;
  }

  .home-hero__lead {
    overflow-wrap: anywhere;
  }

  .hero-scroll {
    display: none;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .home-story {
    width: 100%;
  }

  .home-story .content-block:nth-child(4n + 1),
  .home-story .content-block:nth-child(4n + 4) {
    padding: 2rem 24px;
  }

  .home-actions {
    grid-template-columns: 1fr;
  }

  .home-actions__image {
    aspect-ratio: 16 / 10;
  }

  .home-actions > div:last-child {
    grid-column: auto;
  }

  .page-hero::after {
    top: 50%;
    right: 16px;
    width: 160px;
    height: 160px;
    opacity: 0.08;
  }

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

  .gallery-image {
    height: auto;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
