:root {
  --font-family: system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-size: 1.3rem;
  --font-weight: 200;
  --line-height: 1.6;

  --max-width: 1200px;
  --spacing: 1rem;

  --nav-height: 100px;

  --color-background: hsl(0, 0%, 100%);

  --color-link: hsl(33.2, 94%, 60%);
  --color-text: hsl(0, 0%, 30%);
  --color-fab: hsla(33.2, 94%, 60.8%, 0.7);

  --color-section-even: var(--color-background);
  --color-section-odd: hsl(40, 20%, 97.3%);
  /*--color-section-odd: hsl(45, 28.6%, 97.3%); */
  --color-nav-text: var(--color-link);
  --color-nav-background: hsl(0, 0%, 100%);

  --color-background-footer-main: var(--color-section-odd);
  --color-background-footer-legal: hsl(0, 0%, 100%);

  --color-hero-1-text: hsl(0, 0%, 100%);
  --color-hero-1-background: hsl(47.2, 92.6%, 68.2%);

  --color-hero-1-m-text: hsl(0, 0%, 100%);
  --color-hero-1-m-text-background: hsl(47.2, 92.6%, 68.2%);
  --color-hero-1-m-background: hsl(0, 0%, 100%);
}

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

/******************** Body ********************/
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  line-height: var(--line-height);

  margin: 0 auto;
  color: var(--color-text);
  background-color: var(--color-background);
}

/******************** Links ********************/
a {
  text-decoration: none;
  border: none;
  transition: .3s;
  /*white-space: nowrap;*/
}

main a, main a:link, main a:visited {
  color: var(--color-link);
}

nav a, nav a:link, nav a:visited {
  color: var(--color-nav-text);
}

nav a:hover, nav a:focus, nav a:active, main a:hover, main a:focus, main a:active {
  color: var(--color-link);
}

footer a, footer a:link, footer a:visited {
  color: var(--color-text);
}

footer a:hover, footer a:focus, footer a:active {
  color:  var(--color-link);
}

.button-primary {
  font-size: 1.2rem;
  padding: 1rem 2rem !important;
  color: var(--color-background) !important;
  background-color: var(--color-link);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-weight: 300;
  cursor: pointer;
}

.button-primary.action-text {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

span.action-text {
  display: block;
  text-align: center;
  font-weight: 400;
  font-size: larger;
  padding-top: 1rem;
  padding-bottom: 0.3rem;
}

.button-primary a {
  color: var(--color-background) !important;
}

/******************** Nav ********************/
nav {
  width: 100%;
  background-color: var(--color-nav-background);
  /* Fixed nav */
  position: fixed;
  top: 0;
  z-index: 1;
}

nav .container {
  display: block;
  width: 100%;
}

ul.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 300;
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 0; /* Für funktionierende Zentrierung von Text und Symbol */
}

.menu-item a {
  display: block;
  padding: 25px;
  font-weight: 400;
}

.menu-logo {
  order: 0;
  letter-spacing: 0.1rem;
  padding: 0;
  display: flex;
  align-items: center;
  height: var(--nav-height); /* Definition für mobiles Menü, die Höhe für Desktop wird unten in "nav" gesetzt */
  font-weight: 600;
}

.menu-logo-small img {
  position: absolute;
  top: 10px;
  display: none;
}

.menu-logo-big img {
  position: absolute;
  top: 18px;
}

.menu-logo-big a {
  padding-left: 90px;
}

.menu-logo-small a {
  font-size: 1rem;
  font-weight: 600;
}

.menu-logo-big {
  display: none;
}

.menu-toggle {
  order: 1;
}

.menu-item {
  order: 2;
  width: 100%;
  text-align: center;
  display: none;
  padding-bottom: 1rem; /* Nur für das mobile Menü */
  letter-spacing: 0.05rem;
}

/* Only "menu-item" + "menu-active" shall be visible when active, "menu-logo" + "menu-open/close" is handled separately */
.menu-active .menu-item {
  display: block;
}

.menu-invisible {
  display: none;
}

.menu-visible {
  display: block;
}

#fab-container {
  position: fixed;
  bottom: 40px;
  right: 20px;
  padding: 20px;
  z-index: 1;
}

#fab-link svg path {
  fill: var(--color-fab);
}

.fab-invisible {
  display: none;
}

.fab-visible {
  display: block;
}

.menu-toggle svg rect {
  fill: var(--color-nav-text);
  transition: .3s;
}

.menu-toggle svg line {
  stroke: var(--color-nav-text);
  transition: .3s;
}

@media all and (min-width: 1080px) {
  nav {
    height: var(--nav-height); /* Die Höhe des mobilen Menüs wird in .menu-logo gesetzt */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  nav .container {
    display: flex;
    justify-content: center;
    padding-left: 25px;
  }

  ul.menu {
    padding-left: 0px;
    padding-right: 0px;
  }

  .menu {
    width: var(--max-width);
  }

  .menu-logo {
    flex: 1;
    height: 0; /* Wurde für das mobile Menü in .menu-logo gesetzt, muss aber hier wieder entfernt werden */
  }

  .menu-logo-small {
    display: none;
  }

  .menu-logo-big {
    display: block;
  }

  .menu-item {
    order: 1;
    position: relative;
    display: block;
    width: auto;
    padding-bottom: 0;
  }

  .menu-item a {
    font-weight: 400;
  }

  .menu-toggle {
    display: none;
  }

  #fab-container {
    display: none;
  }

}

/******************** main ********************/
main {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row; /* necessary??? */
  /* Fixed nav */
  margin-top: 100px;
}

main section {
  width: 100%;
  background-color: var(--color-section-odd);
}

main section:nth-child(odd) {
  background-color: var(--color-section-even);
}

main .container {
  width: 100%;
  max-width: var(--max-width);

  padding-top: 120px;
  padding-bottom: 120px;

  padding-left: 25px;
  padding-right: 25px;
  margin: 0 auto;
}

main .container.plain {
  padding-top: 60px;
}

@media all and (min-width: 1080px) {
  /* Fixed nav */
  main {
  }

  main .container {
    /*
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    */
  }
}

main p {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  line-height: 2.2rem;
  font-weight: 200;
  font-size: 1.2rem;
}

main h1 {
  font-weight: 400;
  padding-bottom: 120px;
  font-size: 2.6rem;
  letter-spacing: .05rem;
  text-align: center;
  line-height: 3.4rem;
  color: var(--color-link);
  width: 100%;
  text-transform: uppercase;

  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

main h1.sub {
  padding-bottom: 0;
}

main h1.nosub {
  padding-bottom: 80px;
}


.plain h1 {
  text-align: left;
}

main h2 {
  font-weight: 100;
  padding-top: 40px;
  padding-bottom: 60px;
  font-size: 1.4rem;
  letter-spacing: .05rem;
  text-align: center;
  line-height: 2.2rem;
  width: 100%;

  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}


dt {
  font-weight: 400;
  padding-bottom: .5rem;
  letter-spacing: .05rem;
}


dd {
  padding-bottom: 1.8rem;
}

dd p {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

main ul {
  list-style: disc;
  margin-left: 2rem;
  padding-bottom: 1rem;
}

main li {
  padding-top: 0.5rem;

}

main lh {
  margin-left: -2rem;
}

main small {
  font-size: 0.85rem;
}

.mobile {
  display: contents;
}

.desktop {
  display: none;
}

@media all and (min-width: 1080px) {
  .mobile {
    display: none;
  }

  .desktop {
    display: contents;
  }
}

/******************** tables ********************/

table {
  border-collapse: separate;
  border-spacing: 0 7px;
  border: 0px;
}

table.openinghours th {
  text-align: left;
  font-weight: inherit;
  padding-right: 4rem;
  vertical-align: top;
}

table.openinghours td {
  text-align: right;
  padding-top: 3px;
  padding-bottom: 3px;
  white-space: nowrap;
}

table.address th {
  text-align: left;
  font-weight: inherit;
  vertical-align: top;
}

table.address td {
  text-align: left;
  white-space: nowrap;
}

/******************** hero-1 ********************/
.hero-1 {
  display: none;

  height: 75vh;
  width: 100%;
  padding: 0;

  background-image: url("/img/hero-1.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--color-background);
}

@media all and (min-width: 1080px) {
  .hero-1 {
    display: block;
  }

  .hero-1-m {
    display: none;
  }
  .hero-2-m {
    display: none;
  }

}

.hero-1-overlay {
  height: 75vh;
  width: 50vw;

  display: grid;
  align-content: end;
  justify-items: center;
}

.hero-1-text {
  transform: skewX(-12deg);

  margin-bottom: 10%;
  margin-left: 10%;
}

.hero-1-text-1 {
  position: relative;
  left: -1000px;

  animation-name: hero-1-text-slide;
  animation-duration: 1s;
  animation-direction: normal;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-delay: 0s;
}

.hero-1-text-2 {
  position: relative;
  left: -1000px;

  animation-name: hero-1-text-slide;
  animation-duration: 1s;
  animation-direction: normal;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-delay: 0.4s;
}

@keyframes hero-1-text-slide {
  100% { left: 0; }
}

.hero-1-text > div {
  width: max-content;
  white-space: nowrap;
  margin: 1rem;

  color: var(--color-hero-1-text);
  background-color: var(--color-hero-1-background);

  font-weight: 200;
  font-size: 4vw;
  letter-spacing: 0.1rem;

  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0;
  padding-bottom: 0;
}

/******************** hero-1-m ********************/
.hero-1-m {
  height: calc(100vh - 100px);
  height: calc(100dvh - 100px);
  width: 100%;
  padding: 0;
}

.hero-1-m-img {
  height: calc(50vh - 50px); /* 100px = height of menu, one half for picture, another half for text - old browsers */
  height: calc(50dvh - 50px); /* 100px = height of menu, one half for picture, another half for text */
  width: 100%;
  padding: 0;

  background-image: url("/img/hero-1-m.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--color-background);
}


.hero-1-m-txt {
  height: calc(50vh - 50px); /* 100px = height of menu, one half for picture, another half for text - old browsers */
  height: calc(50dvh - 50px); /* 100px = height of menu, one half for picture, another half for text */
  background-color: var(--color-hero-1-m-background);

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

  color: var(--color-hero-1-m-text);
  font-size: 6vh;
  font-weight: 400;
  line-height: 1.2em;
}

.hero-1-m-txt span {
  background-color: var(--color-hero-1-m-text-background);
  transform: skewX(-12deg);

  margin-bottom: 0.5rem;
  margin-left: 0.5rem;

  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 0.25rem;
}

.hero-1-m-txt-1 {
  position: relative;
  left: -1000px;

  animation-name: hero-1-m-text-slide;
  animation-duration: 1s;
  animation-direction: normal;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-delay: 0s;
}

.hero-1-m-txt-2 {
  position: relative;
  left: -1000px;

  animation-name: hero-1-m-text-slide;
  animation-duration: 1s;
  animation-direction: normal;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-delay: 0.2s;
}

.hero-1-m-txt-3 {
  position: relative;
  left: -1000px;

  animation-name: hero-1-m-text-slide;
  animation-duration: 1s;
  animation-direction: normal;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-delay: 0.4s;
}

@keyframes hero-1-m-text-slide {
  100% { left: 0; }
}


.hero-1-m-txt svg {
  /*margin-top: 1.2rem;*/

  position: relative;
  top: 0;

  animation-name: hero-1-m-updown;
  animation-duration: 0.5s;
  animation-direction: alternate;
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes hero-1-m-updown {
  0% { top: 0px; }
  100% { top: 10px; }
}

/******************** duo ********************/
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-rows: 1fr;
  grid-column-gap: 80px;
  grid-row-gap: 40px;
}

.duo p {
  max-width: 100%;
}

/******************** contact ********************/
.contact {
  display: grid;
  grid-row-gap: 120px;
  padding-top: 60px;
  padding-bottom: 110px;
}

.contact-element {
  text-align: center;
}

.contact-element h2 {
  font-weight: 400;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  padding-top: 30px;
  padding-bottom: 20px;
}

.contact-element p {
  padding-top: 20px;
  padding-bottom: 35px;
}

.contact-element span {
  color: var(--color-link);
  font-weight: 400;
  font-size: 1.4rem;
}

@media all and (min-width: 1080px) {
  .contact {
    display: grid;
    grid-column-gap: 60px;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/******************** pic-office ********************/
.pic-office {
  width: 100%;
  border: 10px solid var(--color-background);
}

.pic-office-preview {
  width: 120px;
  border: 10px solid var(--color-background);
  cursor: pointer;
}

@media all and (min-width: 1080px) {
  .pic-office-preview {
    width: 110px;
  }
}

.pic-office-slider {
  overflow-x: auto;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
}

/******************** info ********************/
.info-block {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  padding-top: 2rem;
}

@media all and (min-width: 1080px) {
  .info-block {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info {
  display: flex;
  flex-direction: row;
  column-gap: 2rem;
}

.info h2 {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 1.8rem;
  font-weight: 200;
  text-align: left;
}

.info p {
  max-width: 100%;
}

/******************** cloud ********************/
ul.cloud {
  list-style: none;
  margin-left: 0;
}

ul.cloud span {
  --size: 4;
  color: var(--color-link);
  display: block;
  padding: 0.125rem 0.25rem;
  position: relative;
  text-decoration: none;
  opacity: calc((15 - (9 - var(--size))) / 15);
  text-align: center;
}

ul.cloud span[data-weight="1"] { --size: 1; }
ul.cloud span[data-weight="2"] { --size: 2; }
ul.cloud span[data-weight="3"] { --size: 3; }
ul.cloud span[data-weight="4"] { --size: 4; }
ul.cloud span[data-weight="5"] { --size: 5; }
ul.cloud span[data-weight="5"] { --size: 6; }
ul.cloud span[data-weight="6"] { --size: 8; }
ul.cloud span[data-weight="7"] { --size: 10; }
ul.cloud span[data-weight="8"] { --size: 12; }
ul.cloud span[data-weight="9"] { --size: 14; }

@media all and (min-width: 1080px) {
  ul.cloud {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    line-height: 2.75rem;
  }

  ul.cloud span {
    font-size: calc(var(--size) * 0.25rem + 0.75rem);
  }
}

/******************** footer ********************/

footer.footer-main {
  width: 100%;
  background-color: var(--color-background-footer-main);
  display: flex;
  justify-content: center;

  font-size: 1.05rem;
  line-height: 1.4rem;
  font-weight: 200;
}

/*
@media all and (min-width: 1080px) {
  footer.footer-main {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
*/

footer.footer-main .container {
  width: var(--max-width);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  padding-left: 25px;
  padding-right: 25px;

  padding-top:  50px;
  padding-bottom: 40px;
}

footer.footer-main section {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

footer.footer-main h1 {
  font-size: 1.3rem;
  font-weight: 400;
  padding-bottom: 1.3rem;
  color: var(--color-link);
  letter-spacing: .1rem;
}

footer.footer-main ul {
  list-style: none;
}

footer.footer-main ul > li {
  padding-bottom: 1rem;
}

/******************** map ********************/
div.map {
  margin-top: 60px;
  width: 100%;
  height: 60vh;

  padding: 0;

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

  background-image: url("/img/map-1-m.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: hsl(0, 0%, 98.0%);
}

div.map p {
  text-align: center;
  padding: 1rem;
}

@media all and (min-width: 1080px) {
  div.map {
    background-image: url("/img/map-1.webp");
  }
}

div.map .button-primary {
  margin: 25px;
}

div.map a {
  white-space: normal;
}

/******************** SVG ********************/
svg.symbol path {
  fill: var(--color-text);
}

svg.text {
  fill: var(--color-text);
  width: 1em;
  height: 1em;
}

div.svg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

svg path {
  fill: var(--color-link);
  transition: .3s;
}

svg:hover path {
  fill: var(--color-link);
  transition: .3s;
}

svg:focus path {
  fill: var(--color-link);
  transition: .3s;
}

svg:active path {
  fill: var(--color-link);
  transition: .3s;
}

svg rect {
  fill: var(--color-link);
  transition: .3s;
}

svg:hover rect {
  fill: var(--color-link);
  transition: .3s;
}

svg:focus rect {
  fill: var(--color-link);
  transition: .3s;
}

svg:active rect {
  fill: var(--color-link);
  transition: .3s;
}

svg line {
  stroke: var(--color-link);
  transition: .3s;
}

svg:hover line {
  stroke: var(--color-link);
  transition: .3s;
}

svg:focus line {
  stroke: var(--color-link);
  transition: .3s;
}

svg:active line {
  stroke: var(--color-link);
  transition: .3s;
}

