/* CSS RESET */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
   Modified by Johann Regenit
*/
* {
    box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

a {
    color: inherit;
}

figure {
    overflow: hidden;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

:root :where(.is-layout-flow)>* {
    margin-block-start: 0px;
}

a,
button {
    cursor: pointer;
}

/* //CSS RESET */


:root {
    /* -----------------------------

    COLOR PRESETS

    --wp--preset--color--custom-rot
    --wp--preset--color--custom-schwarz
    --wp--preset--color--custom-hellblau
    --wp--preset--color--custom-hellblau-modified [Texte usw. für besseren Kontrast]

    SHADOW PRESET
    --wp--preset--shadow--natural

    ----------------------------- */

    --fixed-size: 1125px;
    --fixed-size--small: calc(var(--fixed-size) * 0.8);
    --side-border: max(0px, calc((100vw - var(--fixed-size)) / 2));
    --part-size: calc((100vw - var(--fixed-size)) / 2 + var(--fixed-size));

    --section-gap: 100px;

    scroll-padding: 50px;
}



/* TYPOGRAPHY */

p {
    max-width: 100ch !important;

    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.34px;
}

p.wp-block-paragraph:not([class*="has-text-align-"]),
p.wp-block-paragraph.has-text-align-left {
    margin-inline: unset !important;
}

p + p {
    margin-top: 25px !important;
}

:is(.h1) + p:not(.h1, .h2, .subhead1, .subhead2, .subhead3, .subhead4) {
    margin-top: 50px !important;
}

:is(.h2) + p:not(.h1, .h2, .subhead1, .subhead2, .subhead3, .subhead4) {
    margin-top: 40px !important;
}

:is(.subhead1, .subhead2, .subhead3, .subhead4) + p:not(.h1, .h2, .subhead1, .subhead2, .subhead3, .subhead4) {
    margin-top: 25px !important;
}

b,
strong {
  font-weight: 600 !important;
}

.h1 {
    font-size: 50px;
    font-weight: 300;
    line-height: 1;
    text-transform: uppercase;
}

.h2 {
    font-size: 36px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.6px;
}

.subhead1 {
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: 0.6px;
}

.subhead2 {
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.subhead3 {
    font-size: 22px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.05;
}

.subhead4 {
    font-size: 22px;
    font-style: normal;
    font-weight:400;
    line-height: 1.1;
    text-transform: uppercase;
}

:is(.subhead1, .subhead2, .subhead3, .subhead4) + :is(.subhead1, .subhead2, .subhead3, .subhead4) {
    margin-top: 5px;
}

.wp-block-list {
    list-style: disc;
    list-style-position: outside;
}

p + .wp-block-list {
    margin-top: 50px;
}

.wp-block-list > li {
    line-height: 1.2;
    margin-block: 20px;
    margin-left: 20px !important;
}

.wp-block-list > li:first-child {
    margin-top: 0 !important;
}

.header__nav .wp-block-navigation-item__label {
    font-size: 16px;
    font-weight: 400;
}

.header__nav nav:nth-child(1) .wp-block-navigation-item__label {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 750px) {
  .header__nav nav:nth-child(1) .wp-block-navigation-item__label {
        font-size: 15px;
    }  
}



/* UTILITY */
.fixed-size {
    width: var(--fixed-size);
    max-width: 90%;

    margin-inline: auto;
}

.part-size--right {
    width: var(--part-size);
    margin-inline: auto 0 !important;
}

.part-size--left {
    width: var(--part-size);
    margin-inline: 0 auto !important;
}

.entry-content .wp-block-buttons {
    margin-top: 35px;
}

/* LAYOUT */
section+section {
    margin-top: var(--section-gap) !important;
}

.hero + section {
    margin-top: 50px !important;
}

.icon--checkmark {
  margin-inline: auto;
  display: block;
}



/* -----------------------------
    SECTIONS AND BLOCKS
----------------------------- */

/* HR */

hr {
    border: 0 !important;
    height: 4px;
    background: linear-gradient(to right,
            var(--wp--preset--color--custom-rot) 0 33.33%,
            var(--wp--preset--color--custom-schwarz) 33.33% 66.66%,
            var(--wp--preset--color--custom-hellblau) 66.66% 100%);
}

hr:not(.is-style-wide) {
    width: calc(var(--fixed-size) * 0.75) !important;
    max-width: 100%;
}

section+hr {
    margin-block: var(--section-gap) !important;
}

.wp-block-cover.has-hr .wp-block-cover__inner-container {
    position: static;
    z-index: 1;
}

.wp-block-cover.has-hr hr {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
}

/* Header */
header hr {
    margin-top: 0px !important;
}

.header__logo-bar {
    padding-block: 25px !important;
}

/* Navigation */
@media (min-width: 600px) {
    .header__nav {
        position: absolute;
        z-index: 10;

        top: 100%;
        left: 0;
        right: 0;

        margin-top: 0px;

        background-color: #ffffffaa;
        backdrop-filter: blur(5px);

        padding-block: 25px;
    }

    .header__nav nav {
        width: fit-content;
    }

    .header__nav nav + nav {
        margin-top: 5px !important;
    }

    .header__nav ul {
        gap: 0px !important;
    }

    .header__nav nav:nth-child(1) .nav__row-two {
        display: none;
    }

    .header__nav nav:nth-child(2) .nav__row-one {
        display: none;
    }

    .header__nav .wp-block-navigation-item:not(:first-child, .has-child)::before {
        content: "|";
    }

    .header__nav .wp-block-navigation-item+.wp-block-navigation-item:not(.nav__row-two)::before {
        content: "|";
    }

    .header__nav .wp-block-navigation__submenu-container {
        border: 0 !important;
    }
}

@media (min-width: 1200px) {
    .wp-block-navigation .has-child>*:not(.wp-block-navigation__submenu-container) {
        display: none;
    }

    .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
        display: flex !important;
        background-color: inherit;
        color: inherit;

        position: relative !important;
        visibility: visible !important;

        width: auto;
        height: auto;

        min-width: unset !important;

        flex-direction: row;
        opacity: 1;
        overflow: visible;
        visibility: visible;

        gap: 10px;
    }
}

@media (min-width: 600px) and (max-width: 1199px) {
    .header__nav nav:nth-child(2) {
        display: none;
    }

    .header__nav nav:nth-child(1) .nav__row-two {
        display: flex;
    }

    .header__nav .wp-block-navigation-item:not(:first-child)::before {
        content: "|";
    }

    .header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item::before {
        content: "" !important;
    }

    .wp-block-navigation .wp-block-navigation__submenu-icon {
        margin-left: 0;
        transform: translateX(-7px) scale(115%);
    }
}

@media (min-width: 600px) {
    .wp-block-navigation__container {
        gap: 10px;
    }

    .wp-block-navigation-item.current-menu-item {
        position: relative;
    }

    .wp-block-navigation-item__content {
        z-index: 2;
        padding: 10px 15px;
    }

    .header__nav .wp-block-navigation-item__label:hover {
        text-decoration: underline !important;
    }
}

@media (max-width: 600px) {
    .header__nav nav:nth-child(2) {
        display: none;
    }
}

/* Hero */

.hero {
    min-height: clamp(250px, 40vw, 600px);
}

.hero.cover--fixed-height {
    min-height: unset !important;
    padding: 0px !important;
}

.hero.cover--fixed-height img {
    display: block;
    object-fit: unset !important;
    position: relative !important;
    width: auto !important;
}

/* Color Grid */
.color-grid {
    --_columns: 3;
    --_visible-rows: 2;
    grid-template-columns: repeat(var(--_columns), minmax(0, 1fr)) !important;
}

.color-grid__item {
    padding: 25px;
}

.color-grid__item:nth-child(6n + 1),
.color-grid__item:nth-child(6n + 3) {
    background-color: var(--wp--preset--color--custom-hellblau);
}

.color-grid__item:nth-child(6n + 5) {
    background-color: var(--wp--preset--color--custom-beige);
}

@media (max-width: 782px) {
    .color-grid {
        --_columns: 2;
        --_visible-rows: 3;
    }

    .color-grid__item {
        background-color: white !important;
    }

    .color-grid__item:nth-child(4n + 2) {
        background-color: var(--wp--preset--color--custom-hellblau) !important;
    }

    .color-grid__item:nth-child(4n + 3) {
        background-color: var(--wp--preset--color--custom-beige) !important;
    }
}

@media (max-width: 550px) {
    .color-grid {
        --_columns: 1;
        --_visible-rows: 4;
    }



    .color-grid__item {
        background-color: white !important;
    }

    .color-grid__item:nth-child(2n + 1) {
        background-color: var(--wp--preset--color--custom-hellblau) !important;
    }

    .color-grid__item:nth-child(2n + 2) {
        background-color: var(--wp--preset--color--custom-beige) !important;
    }
}

.color-grid.grid--reveal-more .color-grid__item[hidden] {
    display: none !important;
}

.color-grid-toggle {
    display: block;
    margin: 24px auto 0;
    padding: 10px 20px;
    border: 0;
    cursor: pointer;
}

.color-grid-toggle[hidden] {
    display: none !important;
}

/* Banner */
.banner,
.banner-half {
    --_padding: 50px;
}

.banner {
    padding: var(--_padding);
}

.banner-half__content {
    align-content: center;
}

.banner-half__content-inner {
    padding-block: var(--_padding);
    margin-left: var(--side-border);
}

.banner-half__media figure {
    height: 100% !important;
}

.banner-half__media img {
    height: 100%;
    object-fit: cover;

    width: 100%;
    max-height: 700px;
}

/* Side Image */
.side-image {
    --_gap: 80px;
    --_vertical-offset: 40px;
    --_content-size-factor: 0.8;
    --_content-size:
        calc(var(--fixed-size) * var(--_content-size-factor));

    position: relative;
    overflow: clip;
}

.side-image__content {
    position: relative;
    z-index: 1;
    max-width: var(--_content-size);
}

.side-image--left .side-image__content {
    margin-left: auto !important;
    margin-right: var(--side-border) !important;
}

.side-image--right .side-image__content {
    margin-right: auto;
    margin-left: var(--side-border) !important;
}

.side-image__image {
    position: absolute;
    top: var(--_vertical-offset);
    bottom: var(--_vertical-offset);
    margin: 0;
}

.side-image--left .side-image__image {
    left: 0;
    right: calc(var(--side-border) + var(--_content-size) + var(--_gap));
}

.side-image--right .side-image__image {
    right: 0;
    left: calc(var(--side-border) + var(--_content-size) + var(--_gap));
}

.side-image__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.side-image--left .side-image__image img {
    object-position: 100% 0% !important;
}

.side-image--right .side-image__image img {
    object-position: 0% 0% !important;
}

/* Slider */
.section--slider {
    overflow: hidden;
}

/* Image Overflow */

.image-overflow {
    --_overflow-size: 150px;
}

.image-overflow__content {
    padding-bottom: calc(var(--_overflow-size) + 50px) !important;
}

.image-overflow__image {
    margin-top: 0px !important;
    margin-bottom: calc(-1 * var(--_overflow-size)) !important;
    transform: translateY(calc(-1 * var(--_overflow-size)));
    box-shadow: var(--wp--preset--shadow--natural);
}

/* Image Upward Overflow */

.image-upward-overflow {
  --_overflow-height: 600px;
  --_overflow-intersect: 150px;
  
  padding-top: calc(15px + var(--_overflow-intersect));
  margin-top: calc(var(--_overflow-height) - var(--_overflow-intersect) + var(--section-gap)) ;
  
}

.image-upward-overflow__image {
  position: absolute !important;
  display: block !important;
  
  height: var(--_overflow-height);
  width: 100%;
  
  left: 50%;
  bottom: calc(100% - var(--_overflow-intersect));
  

  transform: translateX(-50%);
}

.image-upward-overflow__image img {
  width: 100%;
  height: 100%;
  
  object-fit: contain;
}

/* Fullwidth Image Text */
.fullwidth-image-text {
    --_gap: 25px;
}

.fullwidth-image-text .wp-block-columns {
    gap: var(--_gap);
}

.fullwidth-image-text__image-full {
    display: flex;
}

.fullwidth-image-text__image-full figure {
    width: 100%;
    height: 100%;
    margin: 0;
}

.fullwidth-image-text__image-full img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.fullwidth-image-text__image-small-container {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
}

.fullwidth-image-text__image-small-content {
    margin-bottom: var(--_gap);
    margin-left: max(var(--_gap), var(--side-border)) !important;
}

.fullwidth-image-text__image-small figure {
    min-width: 100%;
}

.fullwidth-image-text__image-small img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* Text Media */

.text-media + .text-media {
    margin-top: 100px !important;
}

.text-media .wp-block-column {
    align-content: center;
}

.text-media__text.has-background {
    padding: 50px;
}

/* Table */

* + .wp-block-table {
    margin-top: 25px !important;
}

.wp-block-table td, .wp-block-table th {
    border: none;
}

/* Counter */

section:has(.has-counter) {
  counter-reset: standard;
}

.has-counter::before {
  counter-increment: standard;
  content: counter(standard);
  
  font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.6px;
    text-transform: uppercase;
  
  color: var(--wp--preset--color--custom-rot);
  
  margin-right: 10px;
}

/* Coard Overflow */
.card-overflow__headline {
    padding: 10px 20px;
    width: fit-content;
    background-color: white;
    box-shadow: var(--wp--preset--shadow--natural);
}

.card-overflow {
    --_padding: 25px;
    padding: var(--_padding);
}

.card-overflow--top {
    margin-top: 50px !important;
}

.card-overflow--top .card-overflow__item {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
}

.card-overflow--bottom {
    margin-bottom: 50px !important;
}

.card-overflow--bottom .card-overflow__item {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
}

.card-overflow--bottom .card-overflow__item .wp-block-button {
    white-space: nowrap;
}

.card-overflow--bottom .card-overflow__content {
    margin-bottom: calc(var(--_padding) * 2) !important;
}

/* Accordeon / FAQ */

.wp-block-getwid-accordion__header-wrapper {
    border: 1px solid #8a8a8a !important;
    border-radius: 0 !important;
}

.wp-block-getwid-accordion__header > a {
    padding: 10px 28px !important;
}

.wp-block-getwid-accordion__header-title {
    width: auto !important;
    height: auto !important;
}

.ui-accordion-header-active
.wp-block-getwid-accordion__header-title {
    color: var(--wp--preset--color--custom-hellblau-modified) !important;
}

.wp-block-getwid-accordion__icon {
    width: auto !important;
    height: auto !important;
    margin-left: 20px !important;
}

.wp-block-getwid-accordion__content-wrapper {
    border: 0 !important;
	margin-bottom: 25px;
}

.wp-block-getwid-accordion__content {
    border: 0 !important;
}

.wp-block-getwid-accordion__content p {
    width: auto !important;
    height: auto !important;
}

@media (max-width: 750px) {
    .wp-block-getwid-accordion__header > a {
        padding-inline: 16px !important;
    }

    .wp-block-getwid-accordion__content {
        padding: 22px 16px 16px !important;
    }
}

/* Footer */

footer {
    margin-top: var(--section-gap);
    box-shadow: var(--wp--preset--shadow--natural);
    padding-block: 50px;
}