html {
  --darkblue: #170779;
  --highlightblue: #4326f3;
  --primaryblue: #9786f8;
  --mediumblue: #eae7fe;
  --lightblue: #f1effe;
  --white: #ffffff;
  --black: #000000;
  --error: #db440d;
  --radius: 0.75em;
  scroll-behavior: smooth;
  -moz-osx-font-smoothing: grayscale;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Alegreya Sans";
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--darkblue);
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("/includes/fonts/AlegreyaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("/includes/fonts/AlegreyaSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("/includes/fonts/AlegreyaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("/includes/fonts/AlegreyaSans-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
}

.stage {
  display: grid;
  grid-template-columns: [full-start] 1fr [main-start] minmax(10em, 66em) [main-end] 1fr [full-end];
  padding: 0 4em;
  scroll-margin-top: 45px;
}

.stage > * {
  grid-column: main;
}

section {
  padding: 5em 0;
}

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

a {
  position: relative;
  cursor: pointer;
}

p {
  line-height: 1.4em;
  margin-top: 0;
}

h1 {
  font-size: 4.5em;
  font-weight: 900;
}

h2 {
  font-size: 2.5em;
  line-height: 1em;
  margin-top: 0;
  margin-bottom: 0.5em;
  scroll-margin-top: 3em;
}

h3 {
  font-size: 1.5em;
  font-weight: 400;
  margin: 0;
}

h1,
h2,
h3 {
  text-transform: lowercase;
  font-variant: small-caps;
}

section > h2 {
  margin: 0;
}

section > h3 {
  margin-top: 0em;
  margin-bottom: 2em;
}

ul {
  padding-left: 1em;
  line-height: 1.4em;
}

li {
  padding-left: 0.5em;
  margin-bottom: 0.75em;
}

li::marker {
  font-weight: 700;
}

ul > ul {
  padding-left: 1em;
}

.regular {
  font-weight: 400;
  color: var(--darkblue);
}

.bold {
  font-weight: 700;
}

.italic {
  font-style: italic;
}

.caption {
  font-size: 0.85em;
}

.footnote {
  font-size: 0.75em;
}

.caps {
  text-transform: lowercase;
  font-variant: small-caps;
}

.nocaps {
  text-transform: none;
  font-variant: none;
}

.underline {
  text-decoration: underline var(--darkblue);
  text-underline-offset: 0.1em;
}

.center-text {
  text-align: center;
  line-height: 1.25em;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

.mobile-hero {
  display: none;
}

.hero-img-container {
  z-index: -900;
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.hero-img-1 {
  position: relative;
  left: -5vw;
  width: auto;
  height: 25em;
  border-radius: var(--radius);
  top: -2em;
}

.hero-img-2 {
  position: relative;
  right: -5vw;
  width: auto;
  height: 20em;
  border-radius: var(--radius);
  top: 4em;
}

.hero-img-3 {
  display: none;
}

.dark-bg {
  background-color: var(--darkblue);
}

.primary-bg {
  background-color: var(--primaryblue);
}

.light-bg {
  background-color: var(--lightblue);
}

.dark-bg,
.primary-bg > * {
  color: var(--white);
}

.clmn-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 5vw;
}

.clmn-2 h2:not(:first-child) {
  margin-top: 2em;
}

.reverse-img {
  grid-column: 1;
  grid-row: 1;
}

.reverse-txt {
  grid-column: 2;
}

.img-sm img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.img-md img {
  overflow: hidden;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
  height: 24em;
}

.img-lrg img {
  overflow: hidden;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
  height: 40em;
}

.img-wide {
  padding-bottom: 2em;
}

.img-wide img {
  overflow: hidden;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
  height: 30em;
}

.justify-middle {
  margin: 0 auto;
}

.flex-middle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.flex-row {
  display: flex;
  flex-direction: row;
  gap: 4em;
}

.flex-clmn {
  display: flex;
  flex-flow: wrap;
  gap: 3em;
}

.flex-clmn > div:not(:last-of-type) {
  padding-right: 3em;
  border-right: 1px solid var(--darkblue);
}

#aerzte .flex-row {
  padding-bottom: 1em;
  gap: 1em;
}

#aerzte .flex-row > p.bold {
  white-space: nowrap;
  padding-right: 3em;
  width: 3em;
}

.cta {
  margin: 0 auto;
  max-width: 80em;
  padding: 3em 4em;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  grid-column-gap: 4em;
  box-shadow: 0px 0.4px 0.9px rgba(0, 0, 0, 0.095),
    0px 1.3px 3.1px rgba(0, 0, 0, 0.127), 0px 6px 14px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.cta p {
  color: var(--white);
}

.cta .button:last-of-type {
  margin-top: 1.75em;
}

.verticalline {
  border-right: 1px solid var(--white);
}

.light-bg .verticalline {
  border-right: 1px solid var(--darkblue);
}

hr.new1 {
  margin-bottom: 1.5em;
  border-top: 5px solid var(--darkblue);
}

hr.new2 {
  border-top: 1px solid var(--darkblue);
}

.breadcrumbs {
  margin: 2em 0;
  border-bottom: 1px solid var(--darkblue);
}

.breadcrumbs p {
  margin: 0;
}

/* ------------------------- Buttons ------------------------- */
.button {
  background-color: var(--primaryblue);
  color: var(--white);
  padding: 1em;
  border-radius: var(--radius);
  width: 16em;
  text-align: center;
  transition: 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
}

.button a {
  color: white;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 0.4px 0.9px rgba(0, 0, 0, 0.095),
    0px 1.3px 3.1px rgba(0, 0, 0, 0.127), 0px 6px 14px rgba(0, 0, 0, 0.15);
  transition: 250ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
  cursor: pointer;
}

.primary-bg .button {
  background-color: var(--mediumblue);
  color: var(--primaryblue);
}

.primary-bg .button a {
  background-color: var(--mediumblue);
  color: var(--primaryblue);
}

.button-container {
  padding-top: 3.75em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button-container .button:not(:first-child) {
  margin-top: 2em;
}

.button.light {
  background-color: var(--lightblue);
  border: solid 1px var(--primaryblue);
}

.button.light a {
  color: var(--primaryblue);
  text-decoration: none;
}

.sticky {
  position: sticky;
  position: -webkit-sticky;
  top: 4em;
}

/* ------------------------- LINK HOVER ------------------------- */
.link {
  display: inline-flex;
  color: var(--primaryblue);
  padding-top: 2em;
  text-decoration: none;
  transition: 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
  font-size: 1.25rem;
}

.link:hover {
  color: var(--highlightblue);
  transition: 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
}

.link::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--highlightblue);
  transform: scaleX(0);
  transform-origin: top left;
  transition: transform 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
}

.link:hover::before {
  transform: scaleX(1);
  transition: 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
}

.link::after {
  content: "\00a0\00a0\00a0→";
}

/* ------------------------- ACCORDION ------------------------- */
.accordion-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

.accordion-container button {
  font-family: "Alegreya Sans";
  font-size: 0.9em;
  padding: 1em;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: var(--primaryblue);
  color: var(--white);
  cursor: pointer;
  width: 100%;
  text-align: left;
  border-radius: var(--radius);
  border: none;
  outline: none;
  transition: 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active {
  background-color: var(--darkblue);
  transition: 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
}

.accordion:after {
  content: "\002B";
  color: var(--white);
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
  color: var(--white);
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  background-color: var(--mediumblue);
  margin: 0.5em 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
  border-radius: var(--radius);
}

.panel p {
  padding: 0 1em;
}

.panel p:first-of-type {
  padding-top: 1em;
}

.panel p:last-of-type {
  padding-bottom: 1em;
}

.accordion-img {
  padding: 1em;
  padding-top: 0;
  padding-bottom: 0.9em;
}

.accordion-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
  object-fit: cover;
}

.desktop-footer {
  display: flex;
  flex-direction: row;
}

.desktop-footer > div:not(:last-of-type) {
  margin-right: 10%;
}

.desktop-footer > div > p:first-of-type {
  margin-bottom: 1em;
}

.desktop-footer p {
  margin-bottom: 0;
}

.desktop-footer > .contact {
  padding-left: 1em;
  border-left: 1px solid var(--white);
  white-space: nowrap;
}

.desktop-footer > .contact a {
  color: var(--white);
  text-decoration: none;
}

.desktop-footer > .times {
  padding-left: 1em;
  border-left: 1px solid var(--white);
}

.sitemap {
  padding-left: 1em;
  border-left: 1px solid var(--white);
  display: flex;
  flex-direction: column;
}

.sitemap a {
  margin-bottom: 1em;
  text-decoration: none;
  color: var(--white);
  transition: 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
}

.sitemap a:last-of-type {
  margin-bottom: 0;
}

.sitemap a:hover,
.overlay a:focus,
.menu a:hover {
  color: var(--primaryblue);
  transition: 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
}

.subline {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid var(--white);
}

.subline a {
  font-size: 0.85em;
  text-decoration: none;
  color: var(--white) !important;
  padding-right: 2em;
  transition: 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
}

.subline a:hover,
.overlay a:focus,
.menu a:hover {
  color: var(--primaryblue);
  transition: 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
}

/* ------------------------- FADE IN -------------------------------*/
.star {
  visibility: hidden;
  z-index: 0;
}

.fadeIn {
  animation: animat_show 750ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
  -webkit-animation: animat_show 750ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
  -moz-animation: animat_show 750ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
  -ms-animation: animat_show 750ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
  animation: animat_show 750ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
  visibility: visible !important;
}

@keyframes animat_show {
  from {
    opacity: 0;
    transform: translateY(+1em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@-webkit-keyframes animat_show {
  from {
    opacity: 0;
    transform: translateY(+1em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@-moz-keyframes animat_show {
  from {
    opacity: 0;
    transform: translateY(+1em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@-ms-keyframes animat_show {
  from {
    opacity: 0;
    transform: translateY(+1em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MAPS ---*/

.mapboxgl-ctrl-attrib.mapboxgl-compact {
  display: none;
}

a.mapboxgl-ctrl-logo {
  display: none;
}

/* ------------------------- FADE IN ENDE -------------------------------*/

/* -------------------------- CONTACT FORM -------------------------------*/

.formular {
  padding-top: 0em;
  margin: 0 auto;
  max-width: 100%;
  color: var(--darkblue);
}

.formular a {
  text-decoration: none;
  font-size: 0.75em;
  color: var(--darkblue);
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 1em;
  border: 1px solid var(--darkblue);
  border-radius: var(--radius);
  box-sizing: border-box;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  resize: vertical;
  background-color: none;
}

input[type="email"],
select,
textarea {
  width: 100%;
  padding: 1em;
  border: 1px solid var(--darkblue);
  border-radius: var(--radius);
  box-sizing: border-box;
  margin-top: 0.5em;
  margin-bottom: 1em;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--darkblue);
}

#name,
#email,
#tel,
#status,
#subject,
#message,
#answer {
  font-family: "Alegreya Sans";
  font-size: 1em;
}

input[type="submit"] {
  -webkit-appearance: none;
}

input.button {
  font-family: "Alegreya Sans";
  font-size: 1em;
  background-color: var(--primaryblue);
  color: var(--white);
  padding: 1em;
  border: 0px;
  border-radius: var(--radius);
  width: 16em;
  text-align: center;
  transition: 500ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
  -webkit-appearance: none;
}

input.button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 0.4px 0.9px rgba(0, 0, 0, 0.095),
    0px 1.3px 3.1px rgba(0, 0, 0, 0.127), 0px 6px 14px rgba(0, 0, 0, 0.15);
  transition: 250ms cubic-bezier(0.45, 0.01, 0.5, 0.91);
  cursor: pointer;
}

.error {
  padding-top: 0.5em;
  color: var(--error);
  float: right;
  justify-content: flex-start;
  font-size: 0.75em;
}

.vcard p {
  font-size: 1.15em !important;
}

.hidden-pot {
  display: none;
}

#datenschutz p + h2,
#impressum p + h2 {
  margin-top: 4rem;
}

#datenschutz h3,
#impressum h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#impressum h2 + p {
  margin-top: 1rem;
}

/* -------------------- MEDIA QUERIES -------------------------*/

@media (max-width: 980px) {
  section {
    padding: 2.5em 0;
  }

  section > h3 {
    margin-bottom: 1em;
  }

  .stage {
    padding: 0 2em;
  }

  h1 {
    font-size: 3.5em;
  }

  h2 {
    font-size: 1.75em;
  }

  .clmn-2 {
    display: grid;
    grid-template-columns: 1fr;
    grid-row-gap: 1.5em;
  }

  .clmn-2 h2:not(:first-child) {
    margin-top: 1.5em;
  }

  .reverse-img,
  .mobile-reverse-img {
    grid-row: 1;
  }

  .reverse-txt,
  .mobile-reverse-txt {
    grid-column: 1;
    grid-row: 2;
  }

  .cta {
    padding: 1.5em;
    grid-template-columns: 1fr;
    grid-row-gap: 1em;
  }

  .cta .justify-middle {
    margin: 0 0;
  }

  .button-container {
    padding-top: 1em;
    align-items: flex-start;
  }

  .img-md img {
    height: 20em;
  }

  .img-lrg img {
    height: 20em;
    object-position: 50% 30%;
    object-fit: cover;
  }

  .flex-row {
    display: block;
    row-gap: 2em;
    flex-flow: wrap;
  }

  .flex-row > div:not(:last-of-type) {
    margin-bottom: 2em;
  }

  #aerzte .flex-row {
    display: flex;
    padding-bottom: 1em;
    gap: 0em;
    flex-wrap: nowrap;
  }

  #aerzte .flex-row > p.bold {
    white-space: nowrap;
    padding-right: 0em;
    margin-right: 6em;
    width: 0em;
  }

  .hero-img-1 {
    position: relative;
    left: 0em;
    width: auto;
    height: 15em;
    border-radius: var(--radius);
    top: -6em;
  }

  .hero-img-2 {
    position: relative;
    right: 0em;
    width: auto;
    height: 10em;
    border-radius: var(--radius);
    top: 6em;
  }

  .sitemap {
    display: none;
  }

  .button {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 720px) {
  .desktop-footer {
    display: flex;
    flex-direction: column;
    row-gap: 2em;
  }
}

@media (max-width: 480px) {
  .stage {
    padding: 0 1.5em;
  }

  h1 {
    font-size: 2.25em;
  }

  h2 {
    font-size: 1.5em;
  }

  .caption.link {
    font-size: 1em;
    padding-top: 0.75em;
  }

  .img-md {
    height: 15em;
  }

  .img-md img {
    height: 15em;
  }

  .img-lrg img {
    height: 15em;
  }

  .img-wide {
    padding-bottom: 1em;
  }

  .img-wide img {
    height: 15em;
  }

  .flex-row {
    flex-flow: wrap;
  }

  .cta .justify-middle {
    margin: 0 0;
  }

  .button {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  input.button {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .flex-clmn {
    display: block;
    flex-flow: wrap;
    gap: 3em;
    padding-left: 1em;
  }

  .flex-clmn > div:not(:last-of-type) {
    margin-bottom: 2em;
    padding-right: 0em;
    border-right: 0px solid var(--darkblue);
  }

  .hero {
    display: none;
  }

  .mobile-hero {
    display: block;
    flex-direction: column;
    align-items: center;
    row-gap: 2em;
  }

  .mobile-hero h1 {
    text-align: center;
    position: relative;
    color: var(--darkblue);
  }

  .mobile-hero img {
    object-fit: cover;
    overflow: hidden;
  }

  .hero-img-3 {
    display: inherit;
    width: 100%;
    height: 15em;
    border-radius: var(--radius);
  }

  .desktop-footer > div:not(:last-of-type) {
    margin-right: 0;
  }
}

@media (max-width: 450px) {
  h1 {
    font-size: 1.75em;
  }

  h2 {
    font-size: 1.25em;
  }

  .desktop-footer a {
    color: var(--white) !important;
  }
}

.floating-news {
  padding: 1rem 1.5rem;
  background-color: var(--error);
  border-radius: var(--radius);
  color: var(--white);
  margin-bottom: 2rem;
  transform: translateY(-2rem);
  text-align: center;
  text-wrap: balance;
}
.mobile-hero .floating-news {
  transform: translateY(0);
}
