/*
Theme Name: DS&B-Theme
Theme URI: https://www.farn.de
Author: FARN digital brand design
Author URI: https://www.farn.de
Version: 1.2.0
Text Domain: dsb-theme
*/

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: antialiased;
  text-rendering: optimizeLegibility;
  word-wrap: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-feature-settings: "liga", "clig";
  -moz-font-feature-settings: "liga", "clig";
  font-feature-settings: "liga", "clig";
  -webkit-font-feature-settings: "liga", "lnum";
  -moz-font-feature-settings: "liga", "lnum";
  font-feature-settings: "liga", "lnum";
  position: relative;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  height: 100%;
  margin-top: 0 !important;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
}

/* Headings */
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none !important;
}

/* header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background-color: #fff;
  transition: box-shadow 0.3s;
}
header.scrolled {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}
.logged-in header {
  top: var(--wp-admin--admin-bar--height);
}
.head-logo a {
  display: inline-block;
}
.head-logo img {
  margin: 14px 0 14px 0;
}

/* widths */
.alignfull {
  margin-right: auto;
  margin-left: auto;
  width: 100%;
  margin-top: 3rem;
}
.alignwide {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.wp-block-cover.alignfull > .wp-block-cover__inner-container,
.wp-block-group.alignfull {
  width: 100%;
}
.entry-content > :not(.alignwide):not(.alignfull),
.wp-block-cover.alignfull > .wp-block-cover__inner-container > :not(.alignwide):not(.alignfull),
.wp-block-group.alignfull > :not(.alignwide):not(.alignfull) {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* paddings and margins for alignfull blocks */
.wp-block-group.alignfull.has-background,
.wp-block-cover.alignfull {
  padding: 3rem 0;
}
.alignfull + * {
  margin-top: 3rem;
}
.alignfull + .alignfull,
.alignfull + footer {
  margin-top: 0 !important;
}
.entry-content > *:last-child:not(.alignfull) {
  margin-bottom: 3rem;
}

/* padding for background-color-boxes */
/*
.entry-content .wp-block-group.has-background:not(.alignfull), .wp-block-media-text.has-background .wp-block-media-text__content {
    padding:2em;
    box-sizing: border-box;
} */

/* cover-blocks */
.wp-block-cover.alignfull.has-custom-content-position {
  padding: 2rem !important;
}

/* Footer */
footer {
  margin-top: 0;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-bottom: 7px;
}

.logged-in {
  padding-top: var(--wp-admin--admin-bar--height);
}

/* media queries -------------------------------------------------------------------------------------------------------------------------------------------- */
@media only screen and (min-width: 600px) {
  /* gallery block fixes */
  .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
    width: calc(33.3333% - var(--wp--style--unstable-gallery-gap, 16px) * 0.66667);
  }

  .wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image) {
    width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75);
  }

  .wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image) {
    width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75);
  }
}

/* Columns and query loop wrapping for smaller view */
@media only screen and (max-width: 989px) {
  /* Fix for query loop blocks, min width 250px for each post */
  .wp-block-query ul,
  .is-layout-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  }

  .wp-block-columns {
    flex-wrap: wrap !important;
  }
}

@media only screen and (min-width: 990px) {
  .header-inner {
    margin: 0 auto;
  }
  .head-logo img {
    margin: 21px 10px 22px 30px;
    width: 230px !important;
  }

  /* cover-blocks */
  .wp-block-cover.alignfull.has-custom-content-position {
    padding: 8rem !important;
  }

  /* paddings and margins for alignfull blocks */
  .alignfull {
    margin-top: 6rem;
  }
  .wp-block-group.alignfull.has-background,
  .wp-block-cover.alignfull {
    padding: 6rem 0;
  }
  .alignfull + * {
    margin-top: 6rem;
  }
  .entry-content > *:last-child:not(.alignfull) {
    margin-bottom: 6rem;
  }

  /* gallery block fixes */
  .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
    width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75);
  }

  .wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image) {
    width: calc(20% - var(--wp--style--unstable-gallery-gap, 16px) * 0.8);
  }

  .wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image) {
    width: calc(16.66667% - var(--wp--style--unstable-gallery-gap, 16px) * 0.83333);
  }
}

/* special media query for content width plus 10vw */
@media only screen and (min-width: calc(1200px + 10vw)) {
}

/* DS&B design foundation; page content remains editable in WordPress. */
:root {
  --dsb-blue: #013454;
  --dsb-green: #80c416;
  --dsb-card: #4f6e83;
}
body {
  background: var(--dsb-blue);
  color: #fff;
}
header.wp-block-template-part {
  background: var(--dsb-blue);
}
.dsb-header {
  width: min(90%, 1400px);
  margin-inline: auto;
  padding-block: 1.5rem 0.5rem;
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  column-gap: 3rem;
  align-items: center;
}
.dsb-header > * {
  margin-block: 0;
}
.dsb-header-logo {
  grid-row: 1 / 3;
  width: 100%;
  margin: 0;
}
.dsb-header-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.dsb-header-tools {
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 0.89375rem;
}
.dsb-header-tools p {
  white-space: nowrap;
}
.dsb-header-tools a {
  color: var(--dsb-green);
  text-decoration: none;
}
.dsb-search {
  max-width: 180px;
}
.dsb-search .wp-block-search__inside-wrapper {
  border: 0;
  border-bottom: 1px solid #b8c6d0;
  padding: 0;
}
.dsb-search input {
  min-width: 0;
  width: 100%;
  color: white;
  background: transparent;
  border: 0;
  font: inherit;
}
.dsb-search input::placeholder {
  color: #b8c6d0;
  font-style: italic;
}
.dsb-search .wp-block-search__button {
  background: transparent;
  color: white;
  padding: 0;
  margin: 0;
}
.dsb-search .wp-block-search__button svg {
  width: 22px;
  height: 22px;
}
.dsb-header .dsb-navigation {
  justify-self: end;
}

.leistungsliste > ul > li:nth-child(2n + 1) {
  background-color: #11405d;
}

.dsb-footer {
  width: min(90%, 1400px);
  margin-inline: auto;
  padding-block: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.7fr 0.85fr 0.8fr;
  gap: 2rem;
  font-size: 0.9625rem;
  line-height: 1.45;
}
.dsb-footer > * {
  margin: 0;
  min-width: 0;
}
.dsb-footer p {
  margin: 0;
}
.dsb-footer-logo img {
  width: 145px;
  max-width: 100%;
  height: auto;
  display: block;
}
.dsb-footer a {
  text-decoration: none;
}
.dsb-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--dsb-green);
}
.dsb-footer > :nth-child(n + 4) {
  font-weight: 700;
}
:where(a, button, input):focus-visible {
  outline: 2px solid var(--dsb-green);
  outline-offset: 4px;
}
.wp-block-button__link {
  border-radius: 0;
}
.wp-block-button__link:hover {
  filter: brightness(1.08);
}
.has-white-background-color:not(.has-text-color) {
  color: var(--dsb-blue);
}
/* Optional block style for the green corner frames in the design. */
.is-style-dsb-corners {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(var(--dsb-green), var(--dsb-green)) left top / 6rem 1px no-repeat,
    linear-gradient(var(--dsb-green), var(--dsb-green)) right top / 6rem 1px no-repeat,
    linear-gradient(var(--dsb-green), var(--dsb-green)) left bottom / 6rem 1px no-repeat,
    linear-gradient(var(--dsb-green), var(--dsb-green)) right bottom / 6rem 1px no-repeat;
  border-inline: 1px solid var(--dsb-green);
  max-width: 500px;
}
@media (max-width: 989px) {
  .dsb-header {
    width: 90%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }
  .dsb-header-logo {
    grid-row: auto;
    max-width: 420px;
  }
  .dsb-header-tools {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    justify-content: space-between;
  }
  .dsb-header .dsb-navigation {
    grid-column: 2;
    grid-row: 1;
  }
  .dsb-footer {
    width: 90%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .dsb-header {
    padding-block: 1rem;
  }
  .dsb-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1rem;
  }
  .dsb-footer > :nth-child(4) {
    grid-column: 1 / -1;
  }
  .dsb-header-logo {
    max-width: 310px;
  }
}
.dsb-search .wp-block-search__inside-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dsb-search input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  box-shadow: none;
}
.dsb-search .wp-block-search__button {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dsb-search .search-icon {
  fill: currentColor;
}

/* Layout defaults also override the old explicit 1200px post-content setting. */
.wp-block-post-content.is-layout-constrained > .alignwide {
  max-width: 1400px;
}
.wp-block-columns + .wp-block-columns {
  margin-block-start: 60px;
}
.dsb-footer .wp-block-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dsb-footer .wp-block-page-list li {
  margin-block: 0;
}
.dsb-header > .burgerbutton {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}
.dsb-header > .burgerbutton-menu {
  grid-column: 2;
  grid-row: 2;
  margin: 0 !important;
}
.dsb-header .burgerbutton-linie {
  background: currentColor;
}
.dsb-header .burgerbutton-button {
  color: #fff;
  border: 0;
  background: transparent;
}
.dsb-header .burgerbutton-menu .dsb-navigation {
  font-size: 1.2375rem;
}
.dsb-header .burgerbutton-menu .wp-block-navigation-item:hover {
  color: #80c416;
  stroke: currentColor;
}
@media (max-width: 989px) {
  .dsb-header > .burgerbutton-menu {
    grid-column: 1 / -1;
    grid-row: 3;
    max-height: 70vh;
    overflow-y: auto;
  }
  .dsb-header .burgerbutton-menu .dsb-navigation {
    justify-content: flex-start;
  }
}
