@font-face {
  font-family: gudea;
  src: url('../fonts/gudea/regular.woff2') format('woff2'),
        url('../fonts/gudea/regular.woff') format('woff'),
        url('../fonts/gudea/regular.woff') format('truetype');
  font-weight: normal;
  font-style: normal;
  /* font-display: optional; */
}

@font-face {
  font-family: gudea;
  src: url('../fonts/gudea/bold.woff2') format('woff2'),
        url('../fonts/gudea/bold.woff') format('woff'),
        url('../fonts/gudea/bold.woff') format('truetype');
  font-weight: bold;
  font-style: normal;
  /* font-display: optional; */
}

@font-face {
  font-family: gudea;
  src: url('../fonts/gudea/black.woff2') format('woff2'),
        url('../fonts/gudea/black.woff') format('woff'),
        url('../fonts/gudea/black.woff') format('truetype');
  font-weight: 900;
  font-style: normal;
  /* font-display: optional; */
}

:root {
  --copy-color: #000;
  --bg-color: #fff;
  --off-white: #f0f1f2;
  --primary: #325e6d;
  --primary-lite: #325e6d33;
}

*,
*:before,
*:after {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/** /
* {
  outline: 1px dotted #cf0c;
}
/**/

html {
  font-size: 62.5%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  letter-spacing: 0.03em;
  line-height: 1.333em;
  height: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  width: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--copy-color);
  font: normal 1.7rem/2.4rem helvetica, arial, sans-serif;
  font-feature-settings: 'kern';
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-weight: normal;
  margin-top: 16rem;
  /* min-height: 100%; */
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
ul,
ol,
p {
  margin-bottom: 2rem;
}

ul {
  padding-left: 2rem;
}

h1 {
  color: var(--primary);
  font-size: 2.4rem;
  line-height: 2.9rem;
  text-wrap: balance;
}

h1 + h2 {
  margin-top: -1.6rem;
}

h2 {
  font-size: 2.1rem;
  line-height: 2.7rem;
  text-wrap: balance;
}

hr {
  border-top: .1rem solid var(--off-white);
  margin-top: 4rem;
  padding-top: 4rem;
}

a {
  color: var(--primary);
  text-decoration: none;

}

#body-wrapper a {
  text-decoration: underline;
  text-decoration-color: var(--off-white);
  text-decoration-color: var(--primary-lite);
  text-decoration-thickness: .2rem;
  text-underline-offset: .4rem;
}

#body-wrapper a:hover {
  text-decoration: underline;
  text-decoration-color: var(--primary);
}

a.btn {
  background-color: var(--primary);
  border-radius: .5rem;
  color: #fff;
  font-weight: bold;
  padding: .5rem 1rem;
  text-decoration: none !important;
}

a.btn:hover {
  background-color: #000;
}

a.btn:after {
  font-size: smaller;
  content: ' ►';
}

img {
  max-width: 100%;
}

blockquote {
  background-color: var(--off-white);
  border: .1rem solid var(--primary);
  border-radius: .3rem;
  display: inline-block;
  padding: 1rem 1rem 0.1rem 1rem;
  width: auto;
}

blockquote a {
  background-color: var(--primary);
  border-radius: .3rem;
  color: var(--bg-color);
  font-weight: bold;
  padding: .5rem 1rem;
  text-decoration: none !important;
}

blockquote a:after {
  content: '►';
}

blockquote a:hover {
  background-color: var(--copy-color);
}

#footer,
#page-wrapper {
  max-width: 112rem;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

@media ( max-width: 499px ) {
  #footer,
  #page-wrapper {
    padding: 1rem;
  }
}

#header {
  background-color: var(--off-white);
  height: 15.8rem;
  max-width: 108rem;
  position: fixed;
  top: 0;
  width: calc( 100% - 4rem );
  z-index: 999;
}

@media ( max-width: 499px ) {
  #header {
    background: linear-gradient( 
      to bottom, 
      #e0e1e2 0%, 
      #e0e1e2 4rem, 
      var(--off-white) 4rem, 
      var(--off-white) 100%
    );
    width: calc( 100% - 2rem );
  }
}

#header:after {
  background: inherit;
  /* border-bottom: .1rem solid var(--primary); */
  content: '';
  height: 15.8rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
}

#header .search-wrapper {
  display: block;
  position: absolute;
  right: 0;
  top: 1.5rem;
  width: 16rem;
}

@media( max-width: 899px ) {
  #header .search-wrapper {
    right: 3rem;
    top: 1rem;
  }
}

@media ( max-width: 499px ) {
  #header .search-wrapper {
    right: 3rem;
    top: .7rem;
  }
}


.search-wrapper input {
  border: .2rem solid var(--border-color);
  border-radius: .4rem;
  font: normal 1.6rem/2.4rem font1, arial, sans-serif;
  height: 2.4rem;
  min-width: 100%;
  padding: 0 .4rem;
}

.search-wrapper input:focus {
  border-color: var(--primary);
}

.search-item {
  margin-left: 0;
}

.search-image {
  display: none;
}

body.pages .inline-image {
  display: none;
}

#logo {
  display: block;
  left: 0rem;
  position: absolute;
  top: 1rem;
  width: 24rem;
  z-index: 30;
}

@media ( max-width: 499px ) {
  #logo {
    top: 5rem;
    width: 18rem;
  }
}

@media( min-width: 900px ) {
  nav.navbar {
    bottom: 1rem;
    height: 3.2rem;
    position: absolute;
    right: 0rem;
  }
  
  nav.navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
  }
  
  nav.navbar > ul > li {
    margin-left: 2rem;
  }
  
  nav.navbar > ul > li:first-of-type {
    display: none;
    position: relative;
  }
  
  nav.navbar li {
    line-height: 200%;
    margin-left: 0;
  }
  nav.navbar > ul > li > ul {
    background-color: #fff;
    box-shadow: 0 .5rem .5rem #0003;
    display: none;
    margin-left: -2rem;
    padding: 1rem 2rem;
  }
  
  nav.navbar > ul > li:hover > ul {
    display: block;
    position: absolute;
    z-index: 20;
  }
  
  @media ( max-width: 1279px ) {
    nav.navbar > ul > li:last-of-type:hover > ul {
      right: -1rem;
    }
  }

  nav.navbar a {
    color: var(--copy-color);
    text-decoration: none;
  }
  
  nav.navbar a:hover,
  nav.navbar a.active {
    color: var(--primary);
  }  
}

nav.navbar > ul > li > ul > li > a {
  white-space: nowrap;
}

nav.navbar > ul > li > ul > li > ul {
  display: none;
}

#nav-toggle,
label[for=nav-toggle] {
  display: none;
  -webkit-user-select: none;
  user-select: none;
}

@media ( max-width: 899px ) {
  label[for=nav-toggle] {
    cursor: pointer;
    display: block;
    font-size: 3rem;
    position: fixed;
    right: 2rem;
    top: 1.2rem;
    z-index: 2000;
  }

  label[for=nav-toggle] > span:last-of-type {
    font-size: 2rem;
  }

  label[for=nav-toggle] > span:last-of-type { display: none; }
  #nav-toggle:checked ~ label[for=nav-toggle] > span:last-of-type { display: block; }
  #nav-toggle:checked ~ label[for=nav-toggle] > span:first-of-type { display: none; }

  #header nav {
    background-color: white;
    border-left: .1rem solid var(--primary);
    height: 100vh;
    opacity: 0;
    overflow-y: scroll;
    pointer-events: none;
    transform: translateX(32rem);
    transition: opacity .15s ease-in-out, transform .15s ease-in-out;
    width: 32rem;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 2rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1900;
  }

  #header nav ul {
    list-style-type: none;
  }

  #header nav ul ul {
    margin-bottom: 0;
    padding-left: 2rem;
  }

  #header nav ul li a {
    color: var(--copy-color);
    line-height: 2;
  }

  #header nav a.active {
    color: var(--primary);
  }

  #nav-toggle:checked ~ #page-wrapper nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media ( max-width: 499px ) {
  label[for=nav-toggle] {
    right: 1rem;
    top: .7rem;
  }
}

table tr th,
table tr td {
  padding-right: 2rem;
  text-align: left;
}



#breadcrumbs {
  /* border-top: .1rem solid var(--primary); */
  background-color: var(--off-white);
  /* border-radius: .4rem; */
  font-size: 1.5rem;
  display: flex;
  margin-bottom: 4rem;
  margin-top: .2rem;
  overflow: scroll;
  padding: .4rem .8rem;
}

@media (max-width: 899px ) {
  #breadcrumbs {
    margin: -2rem -2rem 2rem -2rem;
    font-size: 1.3rem;
    /* display: none; */
  }
}

@media (max-width: 899px ) {
  #breadcrumbs {
    margin: -2rem -1rem 1rem -1rem;
  }
}

#breadcrumbs a {
  color: var(--copy-color);
  text-decoration: none;
}

#breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

#breadcrumbs > span {
  white-space: nowrap;
}

#breadcrumbs > span:not(:last-of-type) {
  margin-right: .5rem;
}

#breadcrumbs > span:not(:last-of-type):after {
  content: '>';
}

#breadcrumbs > span:last-of-type {
  font-weight: bold;
}

/* HERO */

#hero {
  /* height: 21rem; */
  aspect-ratio: 108 / 21;
  line-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

#hero img {
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  position: absolute;
  width: 100%;
}

.hero-wrapper {
  position: relative;
}

@media( max-width: 899px ) {
  .hero-wrapper {
    margin: -2rem -2rem 2rem -2rem;
  }
}

.hero {
  display: block;
  left: 0;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 0;
}

.hero > * {
  display: block;
  opacity: 0;
  left: 0;
  position: absolute;
  top: 0;
  transform: scale(1.1);
  transition: opacity .4s ease-in-out, transform .4s ease-in-out;
  z-index: 0;
}

.hero > *.next {
  opacity: 1;
  transform: scale(1);
  z-index: 10;
}

.hero > *.selected {
  opacity: 1;
  transform: scale(1);
  z-index: 5;
}

.hero-nav-container {
  bottom: -1rem;
  position: absolute;
  right: 2rem;
  width: 8rem;
}

@media ( min-width: 700px ) {
  .hero-nav-container {
    bottom: -1.5rem;
  }
}

@media ( min-width: 1024px ) {
  .hero-nav-container {
    right: calc( ( 100vw - 1024px ) / 2 + 2rem);
    width: 20rem;
  }
}

@media ( min-width: 1160px ) {
  .hero-nav-container {
    right: calc( ( 100vw - 1160px ) / 2 + 2rem);
  }
}

.hero-nav {
  cursor: pointer;
  background-image: url(../img/ui/pfeil-unten-red.svg);
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  height: 1.8rem;
  position: absolute;
  -webkit-user-select: none;
  user-select: none;
  width: 3rem;
  /* z-index: 20; */
}

.hero-prev {
  left: 0;
  transform: rotate(90deg);
}

.hero-next {
  right: 0;
  transform: rotate(-90deg);
}

#body-wrapper {
  min-height: calc( 100dvh - 64.4rem );
}

#body-wrapper .container {
  position: relative;
  padding: 0 30rem 10rem 0;
}

@media ( width >= 768px ) {
  body.home #body-wrapper .container {
    min-height: 64rem;
  }
}

@media ( max-width: 767px ) {
  #body-wrapper .container {
    padding: 0 0 2rem 0;
  }
}

#body-wrapper .container > ul > li {
  margin-left: 2rem;
}

#body-wrapper .container .inline-image {
  position: absolute;
  right: 0;
  width: 25rem;
}

.inline-image {
  /* outline: 3px dotted pink; */
  border: .1rem solid #ccc;
  border-radius: .3rem;
  width: 25rem;
}

@media ( max-width: 767px ) {
  #body-wrapper .container .inline-image {
    position: static;
  }
}

#body-wrapper .container .marginal {
  position: absolute;
  right: 0;
  top: 0;
  width: 25rem;
}

@media ( max-width: 767px ) {
  #body-wrapper .container .marginal {
    margin-top: 4rem;
    position: static;
  }
}

#body-wrapper .container .marginal img {
  outline: .1rem solid #e0e1e2;
}

#footer {
  background-color: var(--primary);
  color: #fff;
  min-height: 16rem;
  position: relative;
}

#footer:after {
  background-color: inherit;
  /* border-bottom: .1rem solid var(--primary); */
  content: '';
  height: 100%;
  position: absolute;
  bottom: 0;
  left: calc( ( 100vw - 100% ) / -2 );
  right: calc( ( 100vw - 100% ) / -2 );
  z-index: -1;
}

#footer div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

@media ( max-width: 899px ) {
  #footer div {
    flex-wrap: wrap;
  }
  #footer div > * {
    width: calc( 50% - 2rem );
  }
}

@media ( max-width: 499px ) {
  #footer div > * {
    width: calc( 100% - 2rem );
  }
}

@media ( min-width: 900px ) {
  #footer div nav {
    text-align: right;
  }
}

#footer a {
  color: #fff;
}

.footer-nav > ul > li,
.footer-nav > ul > li > a,
.footer-nav > ul > li > ul > li,
.footer-nav > ul > li > ul > li > ul {
  display: none;
}

.footer-nav > ul > li:last-of-type,
.footer-nav > ul > li > ul > li.impressum,
.footer-nav > ul > li > ul > li.datenschutz,
.footer-nav > ul > li > ul > li.manage-privacy-settings {
  display: block;
}

.footer-nav ul {
  padding: 0;
  margin-bottom: 0;
}

.copyright {
  opacity: .5;
}

.pflichtfelder {
  float: right;
}

label {
  font-weight: bold;
}

body.kontaktformular #start form textarea,
body.kontaktformular #start form input[type=email],
body.kontaktformular #start form input[type=text],
body.kontaktformular #start form button[type=submit] {
  background-color: white;
  border: .1rem solid var(--primary);
  border-radius: .4rem;
  font: 1.8rem/1.5 helvetica, arial, sans-serif;
  padding: .2rem .4rem;
  width: 100%;
}

@media( min-width: 1124px ) {
  body.kontaktformular #start form input[type=email],
  body.kontaktformular #start form input[type=text] {
    width: 50%;
  }
}

body.kontaktformular #start form .basic-captcha input {
  width: 100% !important;
}

body.kontaktformular #start form button[type=submit] {
  background-color: var(--primary);
  color: #fff !important;
  cursor: pointer;
  display:  inline-block;
  font-size: 1.3rem;
  border-radius: .4rem;
  line-height: 1.8rem;
  padding: .6rem;
  text-transform: uppercase;
  width: auto;
}

body.kontaktformular #start form textarea {
  height: 32rem;
}

.form-field {
  margin-bottom: 2rem;
}

/* BEGIN COOKIEBANNER */

#cookiebannerbg {
  background-color: rgba( 0, 0, 0, .5 );
  bottom: 0;
  display: block;
  left: 0;
  padding: 10px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 99999;
}

@supports ( ( -webkit-backdrop-filter: blur(10px) ) or ( backdrop-filter: blur(10px) ) ) {
  #cookiebannerbg {
/*    background-color: rgba( 255, 255, 255, .8 );*/
    backdrop-filter: saturate(120%) blur(3px);
    -webkit-backdrop-filter: saturate(120%) blur(3px);
  }
}

#cookiebanner {
  color: #fff;
  background-color: var(--primary);
  border-radius: 4px;
  box-shadow: 0 0 5px rgba( 0, 0, 0, .25 );
  display: block;
  font-size: 18px;
  left: 20px;
  padding: 20px;
  position: fixed;
  bottom: 20px;
	max-width: 360px;
  min-width: 300px;
  z-index: 100000;
}

@media screen and ( max-width: 639px ) {
  #cookiebanner {
    left: 10px;
  }
}

#cookiebanner a {
  border: 0;
  color: #fff;
  text-decoration: underline;
}

#cookiebanner label {
  font-weight: normal;
}

#cookiebanner > div {
	max-width: 960px;
	margin: 0 auto;
	text-align: center;
}

.cookiebanner fieldset {
  border: 1px solid #fff;
  border-radius: 4px;
  margin: 20px 0 0;
  padding: 0 10px 10px 10px;
}

.cookiebanner fieldset label {
  cursor: pointer;
  display: block;
  padding-left: 20px;
  position: relative;
  text-align: left;
  width: 100%;
}

.cookiebanner fieldset label input[type=checkbox] {
  left: 0;
  position: absolute;
  top: 8px;
}

.cookiebanner fieldset label small {
  display: block;
  line-height: 18px;
}

.disallowed-external-content button {
  background-color: #fff;
  color: var(--primary) !important;
  display: inline-block;
  font-size: 18px;
  border-radius: 4px;
	line-height: 18px;
/*  margin-top: 20px;*/
  padding: 6px;
}

.disallowed-external-content button {
  margin-bottom: 0;
  margin-top: 10px;
}

.disallowed-external-content button:hover {
  color: #333;
}

.disallowed-external-content {
  background-color: var(--primary);
  color: #fff;
  display: block;
  padding: 20px;
}

.sib-form {
	display: none;
}

.btngrp {
	display: flex;
	justify-content: space-between;
}

.btngrp a.btn {
	font-size: 13px;
	margin-top: 20px;
	padding: 6px 12px;
	text-decoration: none !important;
	text-transform: uppercase;
}

.btngrp a.btn:after {
  content: '';
}

.btngrp a.btn:first-of-type {
	margin-right: 6px;
} 

.btngrp a.btn:last-of-type {
	margin-left: 6px;
} 

#cookiebanner fieldset {
	display: none;
}

#cookiebanner.customize fieldset {
	display: block;
}

#cookiecustomize {
	background-color: #fff9 !important;
}

#cookiebanner.customize #cookiecustomize {
	display: none;
}

#cookieaccept {
	background-color: #fff9 !important;
	display: none;
}

#cookiebanner.customize #cookieaccept {
	display: block;
}

a.txt {
  color: var(--bg-color) !important;
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  font-variation-settings: 'wght' 600;
  border-radius: 4px;
  line-height: 18px;
  /* margin-top: 2rem; */
  padding: 6px;
  text-decoration: underline;
}
button.manage-privacy-settings {
  cursor: pointer;
}
/* END COOKIEBANNER */