/*
    Theme Name: HBB RW
    Theme URI: 
    Author: 
    Author URI: 
    Description: WordPress Theme für HBB RW
    Version: 1.0.0
    Requires at least: 6.0
    Tested up to: 6.7
    Requires PHP: 8.2
    Text Domain: hbb
    Domain Path: /languages
*/

/* Roboto Font */
@font-face {
  font-family: "Roboto Flex";
  src: url("assets/fonts/Roboto_Flex/RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Serif";
  src: url("assets/fonts/Roboto_Serif/RobotoSerif-VariableFont_GRAD,opsz,wdth,wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Flex Button";
  src: url("assets/fonts/Roboto_Flex/RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;

  ascent-override: 90%;
  descent-override: 20%;
  line-gap-override: 0%;
}

/* CSS Variables */
:root {
  --maincolor: #0f172b;
  --purple: #312c85;
  --light-purple: #eef2ff;
  --lightgrey: #f8fafc;
  --cyan: #00d3f3;
}

html {
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 8px;
}

* {
  position: relative;
}

body {
  font-family: "Roboto Flex";
  font-size: 18px;
  display: block;
  margin: 0;
  background-color: #0f0d0c;
  color: #a7988c;
  line-height: 1.6;
}

body.error404 main {
  padding: 60px 0;
}

p strong {
  color: #ece4dd;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto Serif";
}

h1 {
  font-weight: 600;
  font-size: 88px;
  line-height: 105%;
  letter-spacing: -1.76px;
  margin-bottom: 23px;
  color: #ece4dd;
  word-break: break-word;
}

h2 {
  font-weight: 600;
  font-size: 60px;
  line-height: 125%;
  letter-spacing: -0.72px;
  margin-bottom: 20px;
  color: #ece4dd;
  word-break: break-word;
}

h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 33px;
  letter-spacing: -0.72px;
  margin-bottom: 12px;
  color: #ece4dd;
}

h3.bigger {
  font-size: 36px;
  line-height: 40px;
}

h4 {
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
}

h1,
h2,
h3 {
  span {
    color: #ffb787;
  }
}

header,
footer,
main,
section {
  display: block;
}

a {
  display: inline-block;
  width: fit-content;
  color: currentColor;
}

p:last-of-type {
  margin-bottom: 0;
}

section {
  padding: 96px 0;
}

img {
  max-width: 100%;
}

hr {
  width: 100%;
}

.container {
  width: 1280px;
  padding: 0 20px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.container,
.row {
  --bs-gutter-x: 22px;
}

.row-gap {
  row-gap: 20px;
}

.small-font {
  font-size: 14px;
}

.bg-brown {
  background-color: #1a1614;
}

a.box-item {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;

  &:hover,
  &:focus-visible {
    border-color: rgba(167, 152, 140, 0.45) !important;
    box-shadow: 0 0 18px rgba(167, 152, 140, 0.12);
  }
}

.has-arrow {
  color: #ffb787;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  width: fit-content;

  svg path {
    stroke: #ffb787;
  }

  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
}

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

.accordion {
  width: 670px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;

  .accordion-header {
    border-radius: 24px;
  }

  .accordion-item {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    border-radius: 24px;
    border: 1px solid #322924;
    color: #a7988c;
    background-color: #221c19;
  }

  .accordion-body {
    padding: 0 24px 20px 24px;
  }

  .accordion-button {
    padding: 20px 24px;
    border-radius: 24px !important;
    color: #ece4dd;
    background-color: #221c19;
    box-shadow: none;
  }

  .accordion-button::after {
    background-size: 36px;
    width: 36px;
    height: 36px;
    background-image: url("assets/img/accordion-open.svg");
    border-radius: 50%;
  }
  .accordion-button:not(.collapsed)::after {
    transform: none;
    background-image: url("assets/img/accordion-close.svg");
  }
}

input[type="submit"],
button,
.button {
  font-family: "Roboto Flex Button";
  display: inline-block;
  width: fit-content;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 9999px;
  position: relative;
  text-align: center;
  border: 1px solid currentColor;
  font-size: 16px;
  line-height: 1.5;
  font-style: normal;
  font-weight: 400;
  transition: all 0.2s ease-in-out;

  &.btn-dark {
    border-color: #5a4f47;
    background: #0f0d0c;
    color: #ece4dd;

    &:hover {
      background-color: #ece4dd;
      color: #0f0d0c;
    }
  }

  &.is-active,
  &.wpcf7-submit,
  &.btn-orange {
    border-color: #ffb787;
    background: #ffb787;
    color: #4a1d00;

    &:hover {
      background-color: #4a1d00;
      color: #ffb787;
    }
  }

  &:has(span.arrow),
  &:has(span.btn-icon) {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  span.arrow svg path,
  span.btn-icon svg path {
    stroke: currentColor;
  }
}

.button-group {
  gap: 12px;
}

.author {
  margin-top: 30px;
  font-size: 16px;
  line-height: 24px;
  gap: 15px;

  .initials {
    background-color: #5a2e10;
    color: #ffd9c0;
    padding: 12.45px;
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 48px;
    min-height: 48px;
  }
  .position {
    color: #a7988c;
  }
}

.tag {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  width: fit-content;
  background-color: #1f1917;
  color: #ece4dd;
  border: 1px solid #322924;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 1.4;
  font-family: "Roboto Flex Button";
}

.uppercase-tag {
  display: block;
  position: relative;
  width: 100%;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  text-align: left;
  color: #ffb787;
  margin-bottom: 18px;
}

header {
  background-color: #0f0d0c;
  padding: 5px 0;
  font-size: 14px;
  border-bottom: 1px solid #322924;
  position: sticky;
  top: 0;
  z-index: 999;

  a.navbar-brand {
    height: 100%;
    display: flex;
    align-items: center;

    .logo {
      width: 142px;
    }
  }

  .col-group {
    gap: 130px;
  }

  nav {
    padding: 0;
    height: 100%;
  }

  .button-group {
    height: 100%;
    align-items: center;
  }

  .button {
    font-size: 14px;
    padding: 10px 20px;
  }

  #main-nav {
    ul.navbar-nav {
      gap: 36px;
    }

    > ul > li > a {
      &::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 1px;
        background-color: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
      }

      &:hover::after,
      &:focus-visible::after,
      li.current-menu-item &::after,
      li.current-menu-parent &::after {
        transform: scaleX(1);
      }
    }

    li a {
      color: rgba(236, 228, 221, 0.8);
      text-decoration: none;
      position: relative;
      display: inline-block;
    }

    .sub-menu {
      position: absolute;
      background-color: #0f0d0c;
      padding: 12px 0;
      list-style-type: none;
      display: none;
      top: 100%;
      left: 0;
      z-index: 999;

      li a {
        display: block;
        padding: 10px;
      }
    }

    li:hover .sub-menu {
      display: block;
    }
  }
}

footer {
  border-top: 1px solid #322924;
  background-color: #1a1614;
  color: #a7988c;

  img.footer-logo {
    width: 96px;
  }

  .footer-sub-menu li,
  .footer-sub-menu a {
    line-height: 1;
  }

  a {
    color: #a7988c;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    display: inline-block;

    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -2px;
      width: 100%;
      height: 1px;
      background-color: currentColor;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.25s ease;
    }

    &:hover::after,
    &:focus-visible::after {
      transform: scaleX(1);
    }
  }
  h3.footer-col-title,
  h3.footer-col-title > a {
    font-size: 16px;
    color: #ece4dd;
  }

  h3.footer-col-title {
    margin-bottom: 16px;
  }

  ul.footer-contact {
    svg path {
      fill: #ffb787;
    }
  }

  ul.footer-sub-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  li.footer-contact-item {
    margin-bottom: 12px;
    gap: 12px;

    a,
    span {
      color: #ece4dd;
      font-size: 14px;
    }

    img {
      margin-top: 3px;
    }
  }

  .footer-text {
    font-size: 16px;
    width: 317px;
    max-width: 100%;
  }

  .footer-top {
    padding-top: 80px;
    padding-bottom: 67px;
  }

  .footer-bottom {
    padding: 32px 0 80px 0;

    .footer-legal-menu {
      justify-content: end;
    }

    .row {
      row-gap: 23px;
    }
  }
}

form.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 15px;

  .wpcf7-spinner {
    display: none !important;
  }

  > div {
    display: flex;
    flex-direction: row;
    gap: 15px;
  }

  > div > label {
    flex: 1;
  }

  .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
  }
  textarea {
    height: 150px;
  }
  input:not([type="radio"], [type="checkbox"], [type="submit"]),
  textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
  }
}

input:not([type="radio"], [type="checkbox"], [type="submit"]),
textarea {
  border: 1px solid #322924;
  background-color: #221c19;
  color: #ece4dd;
  font-size: 16px;
  line-height: 24px;
  padding: 8px 16px;
  border-radius: 999px;
}

::placeholder {
  color: #ece4dd80;
}

p {
  margin-bottom: 20px;
}

blockquote {
  margin: 0 0 20px 0;
  border-left: 4px solid #ffb787;
  padding-left: 20px;
  font-style: italic;

  p {
    color: #ece4ddcc;
  }
}

figure.wp-block-image {
  margin: 45px 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: #a7988c;
  font-style: italic;

  img {
    border-radius: 24px;
    border: 1px solid #322924;
    width: 100%;
    height: auto;
  }
}

figure.wp-block-image :where(figcaption) {
  margin-bottom: 0;
  margin-top: 10px;
}

main > .container {
  > h1 {
    font-size: 60px;
    line-height: normal;
  }
  > h2 {
    font-size: 30px;
    line-height: 36px;
    font-weight: 500;
  }
  > h2,
  > h3,
  > h4 {
    &:not(h2:first-child, h3:first-child, h4:first-child) {
      padding-top: 25px;
    }
  }
  > h3,
  > h4 {
    margin-bottom: 20px;
  }
}
section:not([class^="block-"]):not([class*=" block-"]) {
  h2 {
    font-size: 30px;
    line-height: 36px;
    font-weight: 500;
  }

  .container > h2,
  .container > h3,
  .container > h4 {
    &:not(h2:first-child, h3:first-child, h4:first-child) {
      padding-top: 25px;
    }
  }
  .container > h3,
  .container > h4 {
    margin-bottom: 20px;
  }
}

.container .container {
  padding: 0;
}

body.single {
  section.post-related {
    h2 {
      margin-bottom: 20px;
      font-size: 36px;
      line-height: 40px;
    }
  }
  section.post-intro {
    padding-bottom: 45px;

    h1.post-title {
      margin-bottom: 16px;
      font-size: 60px;
      line-height: 66px;
      letter-spacing: -1.2px;
      font-weight: 600;
    }
    h1.post-title:last-child {
      margin-bottom: 0;
    }
    .tag {
      font-size: 12px;
      line-height: 16px;
      padding: 4px 12px;
      background-color: #5a2e10;
      border-color: #5a2e10;
      color: #ffd9c0;
    }
    .metas {
      font-size: 12px;
      line-height: 16px;
      margin-bottom: 22px;
      gap: 12px;

      .meta-item {
        gap: 7px;
      }
      .meta-item svg {
        margin-bottom: 1px;
      }
    }
    .overview-link {
      margin-bottom: 30px;
    }
    .overview-link a {
      text-decoration: none;
      gap: 10px;

      &:hover::after {
        transform: scaleX(1);
      }

      &::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 1px;
        background-color: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
      }
    }
  }
  section.post-thumbnail {
    padding-bottom: 60px;

    .post-thumbnail {
      width: 928px;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

    .post-thumbnail img {
      border-radius: 32px;
      border: 1px solid #322924;
      width: 100%;
      height: auto;
    }
  }
  section.post-content {
    color: #ece4dde5;
    padding-bottom: 60px;
  }
  section.post-footer {
    hr {
      margin: 0;
      color: #322924;
      opacity: 1;
    }
    .author .name {
      color: #ece4dd;
    }
    .tags-wrap {
      margin-top: 30px;
      gap: 8px;
      .tag {
        color: #a7988c;
        background-color: #0f0d0c;
      }
    }
  }
  section + section:not(.bg-brown) {
    padding-top: 0;
  }
  .limit-width {
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* TEMPLATE PARTS */

section.block-schmaler-header.bg-brown + section.block-news.bg-brown,
section.block-schmaler-header.bg-darkbrown + section.block-news.bg-darkbrown {
  padding-top: 0;
}

section.block-header-mit-bild {
  background-repeat: no-repeat;
  background-size: cover;

  .overlay {
    display: inline-block;
    height: 100%;
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(15, 13, 12, 0.4) 0%,
      rgba(15, 13, 12, 0.7) 50%,
      #0f0d0c 100%
    );
    position: absolute;
    top: 0;
    left: 0;
  }

  .tag {
    margin-bottom: 24px;
  }

  .button-group {
    margin-top: 40px;
  }
}

section.block-zahlen-fakten {
  .row.data-items-row {
    margin-top: 64px;
  }

  .data-item {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    border: 1px solid #322924;
    background: #1a1614;
    padding: 24px;
    gap: 8px;
  }

  .data-number {
    font-size: 48px;
    line-height: 1;
    color: #ffb787;
  }

  .data-text {
    line-height: 1.4;
    word-break: break-word;
  }
}

section.block-drei-linkboxen {
  h3 {
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.4px;
    margin-bottom: 9px;
  }
  .textcontent {
    margin-bottom: 56px;
  }
  .box-item {
    border-radius: 24px;
    background-color: #221c19;
    border: 1px solid #322924;
    text-decoration: none;
    overflow: clip;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .text-wrap {
    padding: 24px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    gap: 20px;
  }
  .box-head img {
    width: 100%;
    height: auto;
    aspect-ratio: 279 / 176;
    object-fit: cover;
  }
  .box-head .tag {
    top: 16px;
    left: 16px;
    position: absolute;
    font-size: 12px;
    padding: 4px 12px;
  }
  .box-head .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(
      0deg,
      #221c19 0%,
      rgba(27, 22, 20, 0.888889) 11.11%,
      rgba(21, 17, 14, 0.777778) 22.22%,
      rgba(15, 11, 9, 0.666667) 33.33%,
      rgba(9, 7, 5, 0.555556) 44.44%,
      rgba(5, 3, 3, 0.444444) 55.56%,
      rgba(2, 1, 1, 0.333333) 66.67%,
      rgba(1, 0, 0, 0.222222) 77.78%,
      rgba(0, 0, 0, 0.111111) 88.89%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}

section.block-tagboxen {
  .col-lg-6 h2:last-child,
  h3 {
    margin-bottom: 0;
  }
  .row.box-item-row {
    margin-top: 56px;
  }
  .group-end {
    height: 100%;
    display: flex;
    align-items: end;
    font-size: 16px;
  }
  .button-group {
    margin-top: 45px;
  }
  &.bg-brown .box-item {
    background-color: #221c19;
  }
  .box-item {
    width: 100%;
    padding: 32px;
    background-color: #1a1614;
    border-radius: 24px;
    border: 1px solid #322924;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between;
    -webkit-justify-content: space-between; */
    gap: 10px;
    text-decoration: none;

    p {
      font-size: 16px;
    }
  }
  .box-head {
    display: flex;
    flex-direction: column;

    .inner-group + h3 {
      margin-top: 32px;
    }

    .uppercase-tag {
      margin-bottom: 8px;
      margin-top: 14px;
      font-size: 12px;
      color: #a7988c;
      line-height: 16px;
    }
  }
  .has-arrow {
    margin-top: 24px;
  }
  .inner-group {
    display: flex;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    gap: 10px;
  }
  span.boxtag.bg {
    border-radius: 16px;
    background: #5a2e10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    min-width: 64px;
    min-height: 64px;
    font-size: 20px;
  }
  span.boxtag.no-bg {
    color: #ffb787;
    font-size: 24px;
    line-height: 32px;
  }
  img.box-icon {
    padding: 14px;
    background-color: #5a2e10;
    border-radius: 16px;
    width: 48px;
    height: auto;
  }
  span.innter-tag {
    font-size: 12px;
    border-radius: 9999px;
    border: 1px solid #5a4f47;
    padding: 5px 12px;
    font-family: "Roboto Flex Button";
    height: fit-content;
  }
}
section.post-related,
section.block-news {
  h3 {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 10px;
  }
  p {
    margin-bottom: 10px;
  }
  .reading-time {
    gap: 5px;
  }
  .subheadline {
    color: #ffb787;
  }
  .news-load-more-wrap {
    margin-top: 45px;
  }
  .news-filter {
    gap: 10px;
  }
  .news-filter button {
    padding: 9px 17px;
    font-size: 14px;
    font-weight: 500;
  }
  .search-filter-wrap {
    margin-bottom: 95px;
    gap: 15px;
  }
  input[type="search"] {
    padding-left: 40px;
    width: 288px;
    max-width: 100%;
    font-size: 14px;
    line-height: 20px;
  }
  form svg {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    height: 16px;
    width: 16px;
    margin: auto 0;
  }
}

section.post-related,
section.block-news,
section.block-aktuelles {
  h1,
  h2 {
    margin-bottom: 0;
  }
  .textcontent {
    margin-bottom: 55px;
  }
  .box-item {
    border-radius: 24px;
    background-color: #221c19;
    border: 1px solid #322924;
    text-decoration: none;
    overflow: clip;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;

    img {
      width: 100%;
      height: auto;
      aspect-ratio: 377 / 224;
      object-fit: cover;
    }
  }
  .text-wrap {
    padding: 20px 20px 24px 20px;
    font-size: 16px;
    flex: 1;
  }
  .has-arrow {
    margin-top: 24px;
  }
  .tags-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 12px;
  }
  .tag {
    padding: 4px 12px;
    background-color: #5a2e10;
    border-color: #5a2e10;
    color: #ffd9c0;
    font-size: 12px;
  }
  .tags-wrap svg {
    margin-bottom: 1px;
  }
  .tags-wrap svg path {
    stroke: currentColor;
  }
}

section.block-kontaktbox {
  .button-group {
    margin-top: 38px;
  }
  .contactbox {
    overflow: clip;
    padding: 80px;
    border-radius: 40px;
    border: 1px solid #322924;
    background: linear-gradient(
      135deg,
      #5a2e10 0%,
      #532d14 7.14%,
      #4c2b17 14.29%,
      #452a19 21.43%,
      #3e281b 28.57%,
      #38271d 35.71%,
      #31251e 42.86%,
      #2a231f 50%,
      #27211d 58.33%,
      #251f1b 66.67%,
      #221c19 75%,
      #1f1a18 83.33%,
      #1d1816 91.67%,
      #1a1614 100%
    );
    width: 1056px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .contactbox::before {
    content: "";
    width: 33%;
    display: block;
    height: auto;
    aspect-ratio: 1;
    position: absolute;
    right: -11%;
    top: -33%;
    background: #ffb78733;
    border-radius: 50%;
    filter: blur(128px);
    pointer-events: none;
  }
  .contactbox.text-center {
    .button-group {
      justify-content: center;
    }
  }
}

section.block-schmaler-header {
  background-repeat: no-repeat;
  background-size: cover;
  padding: 155px 0;

  &.has-image::before {
    content: "";
    background: linear-gradient(
      180deg,
      rgba(15, 13, 12, 0.5) 0%,
      rgba(15, 13, 12, 0.7) 50%,
      #0f0d0c 100%
    );
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }

  h1.smaller {
    font-size: 72px;
    line-height: 76px;
  }

  .textcontent.limited {
    width: 672px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .textcontent {
    text-align: center;

    p {
      width: 768px;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }
  }

  .tag {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }
}

section.block-historie {
  .textcontent {
    text-align: center;
    width: 768px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .button-group {
    margin-top: 30px;
  }
  .button {
    font-size: 14px;
    padding: 10px 20px;
  }
  .history-items {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
    gap: 15px;
    row-gap: 36px;

    .image-wrap {
      padding: 0 20px;
    }

    .image-wrap img {
      border: 1px solid #322924;
      aspect-ratio: 1;
      object-fit: cover;
      width: 100%;
      height: auto;
      border-radius: 24px;
      overflow: clip;
    }

    img.timeline-img {
      width: 100%;
      padding-top: 20px;
    }

    .year {
      font-size: 36px;
      color: #ffb787;
      padding-top: 8px;
    }
  }
}

section.block-supporters {
  .container,
  .row {
    --bs-gutter-x: 15px;
  }
  .row.row-supporters {
    row-gap: 15px;
    margin-top: 45px;
  }
  .supporter {
    background-color: #221c19;
    border: 1px solid #322924;
    border-radius: 16px;
    padding: 50px 25px;
    height: 100%;
  }
}

section.block-bild-und-text.bg-darkbrown
  + section.block-bild-und-text.bg-darkbrown,
section.block-bild-und-text.bg-brown + section.block-bild-und-text.bg-brown {
  padding-top: 0;
}

section.block-bild-und-text {
  .row {
    row-gap: 45px;
  }
  .facts {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    .fact {
      border-radius: 16px;
      display: flex;
      flex-direction: column;
      background-color: #221c19;
      border: 1px solid #322924;
      padding: 15px;
      flex: 1;
      gap: 3px;
    }
    .fact-title {
      color: #ffb787;
      font-size: 24px;
      line-height: 32px;
    }
    .fact-text {
      font-size: 12px;
      line-height: 16px;
    }
  }
  a.arrow-link {
    font-size: 16px;
    text-decoration: none;
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffb787;

    &:hover::after {
      transform: scaleX(1);
    }

    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -2px;
      width: 100%;
      height: 1px;
      background-color: currentColor;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.25s ease;
    }

    span {
      margin-bottom: 4px;
    }
  }
  .image-wrap img {
    border: 1px solid #322924;
    border-radius: 32px;
    width: 100%;
    height: auto;
  }
  .image-wrap .tag {
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid #322924;
    gap: 12px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    background-color: #1a1614cc;
  }
  .button-group {
    margin-top: 38px;
  }
}

section.block-portfolio {
  button.portfolio-image-wrap {
    width: 100%;
    padding: 0;
  }

  .modal button {
    padding: 0;
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 2;
    border-radius: 0;
  }

  .portfolio-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 65px;
  }

  .portfolio-image-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
  }

  .portfolio-image-wrap:first-child {
    grid-row: span 2;
    aspect-ratio: unset;
  }

  .portfolio-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

section.block-faq {
  .textcontent .button {
    margin-left: auto;
    margin-right: auto;
    margin-top: 22px;
  }
  .accordion {
    margin-top: 55px;
  }
  .footer-text-wrap {
    margin-top: 80px;
  }
}

section.block-form {
  .form-wrap {
    margin-top: 38px;
    width: 576px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .textcontent {
    width: 768px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  label:has(.wpcf7-submit) {
    margin-left: auto;
    margin-right: auto;

    .wpcf7-submit {
      padding-left: 50px;
    }

    &::before {
      content: url("assets/img/mail-brown.svg");
      position: absolute;
      left: 25px;
      top: 0;
      bottom: 0;
      margin: auto 0;
      width: 18px;
      height: 22px;
      z-index: 1;
    }

    &:hover::before {
      content: url("assets/img/mail-orange.svg");
    }
  }
}

section.block-quote {
  .textcontent {
    padding: 55px;
    border-radius: 32px;
    background-color: #1a1614;
    border: 1px solid #322924;
    width: 800px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 30px;
    line-height: 41px;
    color: #ece4dd;
  }
  svg {
    margin-bottom: 22px;
  }
}

section.block-kontakt {
  label:has(.wpcf7-submit) {
    width: fit-content;
    margin-left: auto;
  }
  .form-wrap {
    margin-top: 45px;
  }
}

@media (min-width: 992px) {
  section.block-bild-und-text {
    .row,
    .container {
      --bs-gutter-x: 80px;
    }
  }
}

@media (max-width: 1199.98px) {
  footer {
    .footer-col {
      margin-top: 22px !important;
    }
  }
}

@media (max-width: 991.98px) {
  h1 {
    font-size: 48px;
    line-height: 50px;
  }

  h2 {
    font-size: 36px;
    line-height: 45px;
  }

  h3,
  h3.bigger {
    font-size: 24px;
    line-height: 33px;
  }

  main {
    margin-top: 72px;
  }

  header {
    padding: 7.5px 0;
    height: 72px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;

    button.navbar-toggler {
      padding: 0;
      border: none;
      height: 40px;
      width: 40px;
    }

    .navbar-toggler[aria-expanded="false"] {
      img.menu-toggler.close {
        display: none;
      }
    }

    .navbar-toggler[aria-expanded="true"] {
      img.menu-toggler:not(.close) {
        display: none;
      }

      img.menu-toggler.close {
        display: inline-block;
      }
    }

    a.navbar-brand,
    button.navbar-toggler {
      z-index: 99;
      position: relative;
    }

    #main-nav {
      position: fixed;
      top: 72px;
      max-height: calc(100vh - 72px);
      left: 0;
      width: 100%;
      overflow: auto;
      background: #0f0d0c;
      z-index: 98;
      padding: 15px 20px;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      opacity: 0;
      visibility: hidden;
      pointer-events: none;

      transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

      &.show {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }

      ul.navbar-nav {
        gap: 25px;
      }

      ul:not(.sub-menu) {
        height: fit-content;
        width: 100%;
        padding: 12.5px 16px;
      }

      ul:not(.sub-menu) > li > a {
        font-size: 16px;
      }

      .sub-menu {
        position: relative;
        display: block;
        top: unset;
        left: unset;
      }

      .sub-menu li a{
        padding: 10px 0;
      }

      li.current-menu-item a,
      li.current-menu-parent a {
        text-decoration: underline;
      }

      a:not(.button) {
        width: 100%;
        padding: 0;
        font-size: 12px;
        line-height: normal;
        color: #ece4dd;

        &::after {
          display: none;
        }
      }

      .button {
        font-size: 16px;
        padding: 11px 20px;
      }

      .button-group {
        padding-top: 12.5px;
        margin-right: auto;
      }
    }
  }

  footer {
    .footer-text {
      margin-top: 5px !important;
    }
    .footer-top {
      padding-top: 20px;
      padding-bottom: 60px;
    }
    .footer-bottom {
      padding-bottom: 20px;
    }
    ul.footer-sub-menu {
      gap: 20px;
    }
  }

  body.single {
    section.post-intro {
      h1.post-title {
        margin-bottom: 20px;
        font-size: 36px;
        line-height: 40px;
        letter-spacing: -0.72px;
      }
    }
  }

  section.block-schmaler-header {
    h1.smaller {
      font-size: 48px;
      line-height: 51px;
    }
  }

  section.block-zahlen-fakten {
    .row,
    .container {
      --bs-gutter-x: 15px;
    }
    .row-gap {
      row-gap: 15px;
    }
    .data-number {
      font-size: 36px;
    }
  }

  section.block-portfolio {
    .portfolio-images {
      grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-image-wrap:first-child {
      grid-row: unset;
    }
  }
  section.block-kontaktbox {
    .contactbox {
      padding: 40px;
    }
  }
  section.block-tagboxen {
    .col-lg-6 h2:last-child {
      margin-bottom: 20px;
    }
  }
}

@media (max-width: 767.98px) {
  body.single {
    section {
      padding: 60px 0;
    }
  }
  form.wpcf7-form {
    > div {
      flex-direction: column;
    }
  }
  section.block-portfolio {
    .portfolio-images {
      grid-template-columns: 1fr;
    }
  }
  section.block-tagboxen {
    .has-arrow {
      margin-top: 5px;
    }
  }
  section.block-news {
    form,
    input[type="search"] {
      width: 100%;
    }
  }
  section.block-news,
  section.block-aktuelles {
    .text-wrap {
      padding: 24px;
    }
  }
  section.block-historie {
    & .history-items {
      .image-wrap {
        padding: 0;
        text-align: center;
      }
      .image-wrap img {
        max-width: 176px;
      }
    }
  }
  section.block-quote {
    .textcontent {
      padding: 50px;
      font-size: 24px;
      line-height: 33px;
    }
  }
}

@media (max-width: 575.98px) {
  footer {
    .footer-logo-link,
    img.footer-logo {
      width: 100%;
    }
  }

  header {
    #main-nav {
      .button {
        flex: 1;
      }

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