/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  font-size: 16px;

  --elevation-shadow: 0px 1px 2px rgba(0, 0, 0, 0.16), 0px 2px 6px rgba(0, 0, 0, 0.08);

  --font-size-display: 24px;
  --font-size-h1: 28px;
  --font-size-h2: 24px;
  --font-size-h3: 14px;
  --font-size-body: 14px;
  --font-size-body-small: 12px;

  --line-height-normal: 1.8;
  --line-height-citation: 1.6;

  --side-padding: 16px;
  --border-radius: 12px;
}

@media only screen and (min-width: 30rem) {
  :root {
    --font-size-display: 40px;
    --font-size-h1: 32px;
    --font-size-h2: 28px;
    --font-size-h3: 18px;
    --font-size-body: 18px;
    --font-size-body-small: 16px;

    --side-padding: 32px;
  }
}

@media only screen and (min-width: 60rem) {
  :root {
    --font-size-display: 80px;
  }
}

/* inter-regular - latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: local(""), url("../fonts/inter-v8-latin-regular.woff2") format("woff2"),
    url("../fonts/inter-v8-latin-regular.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: local(""), url("../fonts/inter-v8-latin-700.woff2") format("woff2"),
    url("../fonts/inter-v8-latin-700.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  src: local(""), url("../fonts/inter-v8-latin-800.woff2") format("woff2"),
    url("../fonts/inter-v8-latin-800.woff") format("woff");
  font-display: swap;
}

/* ==========================================================================
   Base styles
   ========================================================================== */

html,
body {
  background-color: var(--main-bg-color);
  color: var(--text-color-base);
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  font-family: "Inter", sans-serif;
  letter-spacing: -0.02em;
}

.nav-open,
.gallery-open {
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.h1 {
  font-size: var(--font-size-h1);
  line-height: 1.2;
  margin: 0 0 42px 0;
}

.h2 {
  font-size: var(--font-size-h2);
  line-height: 1.2;
  margin: 0 0 32px 0;
}

.h3 {
  font-size: var(--font-size-h3);
  line-height: 1.2;
  margin: 0 0 24px 0;
}

.text-small {
  font-size: var(--font-size-body-small);
}

.text-light {
  color: var(--text-color-light);
}

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

a:hover {
  text-decoration: underline;
}

a.external,
a[target="_blank"] {
  line-height: var(--line-height-normal);
  display: inline-flex;
  align-items: center;
}

a.external::after,
a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  background-image: url("../img/icon-external.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  margin-right: 4px;
  margin-left: 4px;
  white-space: nowrap;
}

a.external:hover::after,
a[target="_blank"]:hover::after {
  text-decoration: none;
}

/* Für Links mit target=blank, die aber kein "External" Icon haben sollen */
.no-external::after {
  content: "" !important;
  margin-left: 0 !important;
}

p {
  margin: 0 0 32px 0;
}

p.no-margin {
  margin: 0;
}

blockquote {
  background: var(--blockquote-bg-color);
  width: 100%;
  padding: 24px;
  font-style: italic;
  border-radius: var(--border-radius);
  margin: 0 0 32px 0;
}

blockquote footer {
  font-style: normal;
  font-size: var(--font-size-body-small);
}

blockquote footer a {
  display: inline-block;
  margin-bottom: 3px;
}

ul {
  margin: 0 0 32px 0;
  padding-left: 22px;
  list-style: none;
}

ul > li {
  position: relative;
}

ul > li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  left: -15px;
  top: 10px;
  position: absolute;
}

dl {
  margin: 0 0 2rem;
}

dl > dt {
  font-size: 14px;
  margin-bottom: 3px;
}

dl > dd {
  font-size: 18px;
  margin: 0 0 1rem 0;
}

dl > dd a {
  color: inherit;
}

.button {
  background-color: var(--accent-blue);
  color: var(--base-white);
  border-radius: 8px;
  height: 48px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.2s ease;
  padding: 0 2rem;
}

.button--centered {
  margin: 0 auto;
}

.button--inline {
  width: auto;
  display: inline-flex;
  padding: 0 2rem;
}

.button:hover {
  text-decoration: none;
  background-color: var(--accent-blue-hover);
}

.button[disabled] {
  background-color: var(--base-medium-grey);
  color: var(--base-ash-grey);
}

.input,
.textarea {
  background-color: var(--main-bg-color);
  border: 1px solid var(--base-medium-grey);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 16px;
  width: 100%;
  color: var(--text-color-base);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--placeholder-text-color);
}

.input::-ms-input-placeholder,
.textarea::-ms-input-placeholder {
  color: var(--placeholder-text-color);
}

.input {
  height: 3rem;
}

.textarea {
  resize: vertical;
  min-height: 7rem;
  max-height: 20rem;
  padding-top: 1rem;
}

/* ==========================================================================
   Page styles
   ========================================================================== */

/* Hero-Element */

.header {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.header--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background-color: var(--main-bg-color);
  border-bottom: 1px solid var(--header-border-color);
}

body {
  margin-top: 80px;
}

@media only screen and (min-width: 30rem) {
  body {
    margin-top: 104px;
  }
}

@media only screen and (min-width: 60rem) {
  .header--sticky {
    position: relative;
    border-bottom: none;
  }

  body {
    margin-top: 0;
  }
}

.hero {
  color: var(--base-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hero-border-color);
}

.hero__content {
  background-color: var(--base-black);
}

.hero__headline {
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1;
}

.hero__headline-intro {
  font-size: 18px;
  font-weight: 400;
}

.hero__headline-name {
  font-size: 18px;
}

.hero__image-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
}

.hero__image-wrapper::after {
  content: "";
  display: block;
  padding-top: 66.67%;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: auto;
  max-width: 100%;
  transform: translateX(-50%);
}

.hero__content {
  padding: 24px;
}

@media only screen and (min-width: 30rem) {
  .hero__headline-intro {
    font-size: 32px;
  }

  .hero__headline-name {
    font-size: 40px;
  }
}

@media only screen and (min-width: 40rem) {
  .hero {
    flex-direction: row;
  }

  .hero__headline {
    margin-top: 10px;
  }

  .hero__image-wrapper {
    width: 256px;
  }

  .hero__image-wrapper::after {
    content: none;
  }

  .hero__content {
    padding: 32px;
  }

  .hero__image {
    max-width: unset;
    max-height: 100%;
  }
}

@media only screen and (min-width: 60rem) {
  .hero__image-wrapper {
    width: 320px;
  }

  .hero__content {
    padding: 64px;
  }

  .hero__image {
    max-width: 110%;
    max-height: unset;
  }
}

@media only screen and (min-width: 74rem) {
  .hero__headline {
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .hero__headline-intro {
    font-size: 30px;
  }

  .hero__headline-name {
    font-size: 65px;
  }

  .hero__image {
    max-width: unset;
    max-height: 100%;
  }
}

/* Oberste Header-Zeile */

.header-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.header-nav__actions {
  display: flex;
  height: 18px;
}

.header-nav__lettermark {
  color: var(--text-color-base);
  font-size: 18px;
  font-weight: 700;
  padding: 20px 0;
  line-height: 20px;
  letter-spacing: -0.4px;
}

.language-switcher {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--main-bg-color);
  padding: 6px 16px;
  font-size: var(--font-size-body-small);
  line-height: 24px;
  order: 3;
}

.language-switcher__cta {
  margin-left: 8px;
}

button.language-switcher__close {
  color: var(--text-color-base);
  font-size: 16px;
  border: none;
  width: 26px;
  height: 26px;
  margin-left: 16px;
}

button.language-switcher__close svg {
  height: 1em;
}

button.header-nav__darkmode {
  color: var(--text-color-base);
  border: none;
  font-size: 18px;
  width: 18px;
  height: 18px;
  margin-left: 16px;
}

button.header-nav__darkmode svg {
  height: 1em;
}

button.header-nav__menu {
  color: var(--text-color-base);
  border: none;
  font-size: 18px;
  width: 18px;
  height: 18px;
  margin-left: 16px;
}

@media only screen and (min-width: 30rem) {
  .header-nav {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .language-switcher {
    top: 80px;
  }
}

@media only screen and (min-width: 60rem) {
  .header-nav {
    margin-bottom: 0;
    margin-top: 0;
  }

  .language-switcher {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    order: initial;
    border-radius: 8px;
    border: 1px solid var(--border-color);
  }

  .header-nav__lettermark {
    padding: 30px 0;
  }

  button.header-nav__menu {
    display: none;
  }
}

/* Seiten-Layout & Navigation */

.content-wrapper {
  position: relative;
  display: flex;
  max-width: 90rem;
  margin: 0 auto;
}

.navigation-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 34, 34, 0.4);
  z-index: 3;
}

.navigation-wrapper:not(.is-open) {
  display: none;
}

.navigation {
  position: absolute;
  right: 0;
  top: 64px;
  background-color: var(--menu-bg-color);
  padding: 12px 16px;
  margin: 0 16px 0 16px;
}

.navigation::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 3px;
  transform: rotate(-45deg) translateY(-12px);
  background-color: var(--menu-bg-color);
  position: absolute;
  top: 0;
  right: 6px;
  z-index: -1;
  padding: 0;
  margin: 0;
  list-style: none;
}

.navigation > li:not(:last-child) {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.navigation > li::before {
  content: none;
}

.navigation-link {
  display: block;
  font-size: var(--font-size-body-small);
  color: var(--base-medium-grey);
}

.navigation-link.active {
  color: var(--text-color-active);
  font-weight: 700;
}

.content {
  max-width: 50em;
  padding: 0 var(--side-padding);
}

.content--with-margin {
  padding-top: 72px;
}

#lebenslauf {
  padding-top: 40px;
}

.container {
  background-color: var(--main-bg-color);
}

.container--grey {
  background-color: var(--grey-container-bg-color);
}

.container__content {
  max-width: 992px;
  padding: 4rem 1rem 0;
  margin: 0 auto;
}

.page-space-between {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-space-between .footer {
  margin-top: auto;
}

@media only screen and (min-width: 30rem) {
  #lebenslauf {
    padding-top: 64px;
  }

  .navigation {
    border-radius: var(--border-radius);
    width: auto;
    top: 72px;
    left: auto;
    right: 16px;
    margin: 0;
  }

  .container__content {
    padding: 4rem 2rem 0;
  }
}

@media only screen and (min-width: 60rem) {
  .content {
    max-width: 50rem;
  }

  #lebenslauf {
    padding-top: 75px;
  }

  .navigation-wrapper {
    position: sticky;
    padding-top: 72px;
    width: auto;
    background-color: transparent;
    z-index: 1;
  }

  .navigation > li:last-child {
    padding-bottom: 32px;
  }

  .navigation::before {
    content: none;
    display: none;
  }

  .navigation-wrapper:not(.is-open) {
    display: block;
  }

  .navigation {
    position: relative;
    width: 15rem;
    top: 0;
    right: auto;
    background-color: transparent;
    padding: 0 0 0 2rem;
  }

  .navigation > li:not(:last-child) {
    border-bottom: none;
  }
}

@media only screen and (min-width: 74rem) {
  .navigation-wrapper {
    margin-right: 3rem;
  }

  .navigation {
    width: 17rem;
    padding-left: 4rem;
  }
}

/* Content-Elemente */

.sshh {
  color: transparent;
  text-shadow: 0 0 8px var(--text-sshh);
}

figure {
  margin: 0 0 32px 0;
}

figure img {
  border-radius: var(--border-radius);
  border: 1px solid var(--image-border-color);
  width: 100%;
  height: auto;
}

figure > figcaption {
  font-size: var(--font-size-body-small);
  color: var(--text-color-light);
  margin-top: 8px;
}

figure > .video {
  position: relative;
  border-radius: var(--border-radius);
  border: 1px solid var(--image-border-color);
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}

figure > .video > iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.eyecatcher {
  position: relative;
  background-color: var(--eyecatcher-bg-color);
  color: var(--base-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.eyecatcher__label {
  background-color: var(--base-white);
  color: var(--accent-blue);
  font-size: var(--font-size-body-small);
  line-height: 28px;
  vertical-align: bottom;
  padding: 0 12px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.eyecatcher__cta {
  font-weight: bold;
  color: inherit;
}

.eyecatcher__cta::after {
  content: "" !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: absolute;
  margin-left: 0 !important;
}

.article {
  margin-bottom: 40px;
}

.article:not(:first-of-type) {
  padding-top: 40px;
}

.article-footer {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  align-items: center;
  font-size: var(--font-size-body-small);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--articlefooter-bg-color);
}

.article-footer__link {
  line-height: 1.8 !important;
  margin-bottom: 0 !important;
  height: 48px;
  display: inline-flex;
  align-items: center;
}

.article-footer__link:not(:first-of-type) {
  border-top: 1px solid var(--image-border-color);
}

.article-card {
  display: flex;
  align-items: center;
  padding-bottom: 1.5rem;
  font-size: var(--font-size-body-small);
}

.article-card:not(:first-of-type) {
  padding-top: 1.5rem;
}

.article-card:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

/* Kein Border wenn eine Galerie folgt */
.article-card + .gallery {
  border-top: none;
}

.article-card:has(+ .gallery) {
  border-bottom: none;
}

.article-card__content {
  width: 100%;
}

@media only screen and (min-width: 60rem) {
  .article-card__content {
    display: flex;
    justify-content: space-between;
  }
}

.article-card__image {
  margin-right: 1.5rem;
  border: 1px solid var(--image-border-color);
  overflow: hidden;
  border-radius: 8px;
  width: 88px;
  background-color: #fff;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.article-card__image--logo {
  height: 66px;
  background-size: 80%;
}

.article-card__image--square {
  height: 88px;
}

.article-card__image--cover {
  height: 125px;
}

.article-card__title {
  font-size: var(--font-size-body);
  font-weight: bold;
  margin: 0;
}

.article-card__date {
  flex-shrink: 0;
  color: var(--text-color-light);
}

.article-card__location::before {
  content: "";
  display: inline-block;
  height: 16px;
  width: 12px;
  background-image: url("../img/location.svg");
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: 2px;
  position: relative;
  top: 2px;
}

.subsection {
  margin-top: 2rem;
}

@media only screen and (min-width: 30rem) {
  .article {
    margin-bottom: 60px;
  }

  .article:not(:first-of-type) {
    padding-top: 60px;
  }

  .article-footer {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 9px 1.25rem;
  }

  .article-footer__label {
    margin-right: 0.875rem;
  }

  .article-footer__link {
    line-height: inherit;
    height: auto;
  }


  .article-footer__link:not(:first-of-type) {
    border-top: none;
  }

  .article-footer__link:hover {
    text-decoration: none;
  }

  .article-footer__link:hover > span {
    text-decoration: underline;
  }

  .article-footer__link:not(:first-of-type)::before {
    content: "·";
    margin-left: 8px;
    margin-right: 10px;
  }
}

/* Bilder-Gallerie */

.gallery {
  margin-bottom: 2rem;
}

.gallery__items {
  display: flex;
}

.gallery__item {
  position: relative;
  width: 33.33%;
  height: 170px;
  overflow: hidden;
  border: 1px solid var(--image-border-color);
  border-radius: var(--border-radius);
  transition: width 0.5s ease;
  transform: translateZ(0);
  will-change: width;
}

.gallery__item.active {
  width: 66.66%;
}

.gallery__item:not(:last-child) {
  margin-right: 0.5rem;
}

.gallery__item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__caption {
  font-size: var(--font-size-body-small);
  color: var(--text-color-light);
  min-height: 28px;
  margin-top: 0.5rem;
}

@media only screen and (min-width: 30rem) {
  .gallery__item {
    height: 250px;
  }
}

/* Referenzen */

/* Container für References auf volle Breite */
#referenzen .container__content {
  max-width: 90% !important;
  width: 90% !important;
}

#referenzen .content-teaser {
  width: 100% !important;
}

/* CSS Columns für Masonry-Layout (ohne JS-Abhängigkeit) */
.testimonial-grid {
  column-count: 1;
  column-gap: 1.5rem;
  padding-bottom: 2rem;
  width: 100%;
}

/* 2 Spalten ab 640px */
@media only screen and (min-width: 40rem) {
  .testimonial-grid {
    column-count: 2;
  }
}

/* 3 Spalten ab 960px */
@media only screen and (min-width: 60rem) {
  .testimonial-grid {
    column-count: 3;
  }
}

/* 4 Spalten ab 1400px */
@media only screen and (min-width: 87.5rem) {
  .testimonial-grid {
    column-count: 4;
  }
}

.testimonial {
  background-color: var(--main-bg-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--testimonial-border-color);
  width: 100%;
  padding: 1.5rem;
  color: var(--testimonial-text-color);
  margin-bottom: 1.5rem;
  outline: none;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.testimonial__header {
  display: flex;
  align-items: center;
  color: var(--testimonial-text-color);
}

.testimonial__image {
  width: 4rem;
  height: 4rem;
  border-radius: 8rem;
  margin-right: 1rem;
}

.testimonial__title {
  font-weight: bold;
  font-size: 16px;
}

.testimonial__subtitle {
  font-size: 14px;
}

.testimonial__subtitle a {
  vertical-align: unset;
}

.testimonial__quote {
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 16px;
  padding: 0;
  background-color: inherit;
}

.testimonial__highlight {
  background-color: var(--testimonial-highlight-color);
}

.switch-btn {
	padding: 4px;
	font-size: 14px;
	border-radius: 5px;
	color: var(--testimonial-translate-button-text-color);
	background-color: var(--testimonial-translate-button-color);
	margin-top: 10px;
}

@media only screen and (min-width: 30rem) {
  .testimonial {
    margin-bottom: 2rem;
  }
}

/* no-js Fallback für Grid */
@media only screen and (min-width: 40rem) {
  .no-js .testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1.5rem;
  }

  .no-js .testimonial {
    margin-bottom: 0;
  }
}

@media only screen and (min-width: 60rem) {
  .no-js .testimonial-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media only screen and (min-width: 87.5rem) {
  .no-js .testimonial-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* Content-Teaser */

.content-teaser {
  position: relative;
}

.content-teaser--short {
  overflow: hidden;
}

.content-teaser--grey {
  padding-bottom: 30px;
}

.content-teaser--short::before {
  content: "";
  position: absolute;
  bottom: 48px;
  left: 0;
  width: 100%;
  height: 120px;
  background-image: var(--gradient-teaser-light);
}

.content-teaser--short.content-teaser--grey::before {
  background-image: var(--gradient-teaser-dark);
}

.content-teaser--short::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background-color: var(--main-bg-color);
}

.content-teaser--short.content-teaser--grey::after {
  background-color: var(--grey-container-bg-color);
}

.content-teaser__button {
  width: 200px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* Footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  background-color: var(--footer-bg-color);
  color: var(--base-medium-grey);
}

/* Kontakt */

.contact {
  margin-bottom: 7.5rem;
}

.contact__content {
  flex-shrink: 0;
}

.contact__header {
  display: none;
  align-items: center;
  justify-content: space-between;
}

.contact__headline {
  margin-bottom: 2rem;
}

.contact__post-stamp {
  transform: translateY(-20%);
}

.contact__socials {
  display: flex;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.contact__social {
  background-color: var(--social-bg-color);
  color: var(--text-color-base);
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  margin-right: 1rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.contact__social:hover {
  background-color: var(--text-color-base);
  color: var(--social-bg-color);
  text-decoration: none;
}

.contact__social-icon {
  max-width: 24px;
  max-height: 24px;
  width: 100%;
}

.contact__social::after {
  display: none !important;
}

@media only screen and (min-width: 30rem) {
  .contact__header {
    display: flex;
  }
}

@media only screen and (min-width: 60rem) {
  .contact {
    display: flex;
  }

  .contact__content {
    margin-right: 4rem;
  }
}

/* Kontaktformular */

.contact-form {
  width: 100%;
}

.contact-form__input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.contact-form__input-group > label {
  display: block;
  font-size: 14px;
}

.contact-form__submit {
  width: 100%;
  margin-top: 1rem;
}

@media only screen and (min-width: 30rem) {
  .contact-form__input-group {
    margin-bottom: 1rem;
  }

  .contact-form__submit {
    margin-top: 2rem;
  }
}

/* Newsletter */

.newsletter {
  background-color: var(--blockquote-bg-color);
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem 2rem;
  margin-bottom: 4rem;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
}

.newsletter__submit {
  margin-top: 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.newsletter__headline {
  margin-bottom: 0.5rem;
}

.newsletter__text {
  margin-bottom: 1.5rem;
}

.contact-form__success-message {
  background-color: var(--accent-green);
  color: var(--base-white);
  font-size: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 2rem);
  max-width: 45rem;
  min-height: 2.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
}

.contact-form__success-icon {
  margin-right: 0.5rem;
}

.contact-form__success-close {
  color: var(--base-white);
  margin: 0.375rem 0 auto 0.5rem;
}

@media only screen and (min-width: 30rem) {
  .newsletter {
    margin-bottom: 5rem;
  }

  .contact-form__success-message {
    width: calc(100vw - 4rem);
  }

  .contact-form__success-icon {
    font-size: 1.5rem;
    line-height: 1;
    vertical-align: middle;
  }
}

@media only screen and (min-width: 45rem) {
  .newsletter__form {
    flex-direction: row;
  }

  .newsletter__submit {
    margin-top: 0;
    margin-left: 1rem;
  }

  .newsletter__input {
    max-width: 420px;
  }
}

@media only screen and (min-width: 60rem) {
  .newsletter {
    margin-bottom: 7.5rem;
  }
}

/* Galerie Lightbox */

.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 34, 34, 0.88);
  z-index: 10;
}

.gallery-modal::after {
  content: "";
  display: block;
  background-image: url(../img/icon-xmark.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  position: absolute;
  top: 2rem;
  right: 1rem;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.gallery-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 64rem;
  transform: translate(-50%, -50%);
}

.gallery-modal__image-wrapper {
  display: flex;
  align-items: center;
}

.gallery-modal__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100vh;
  margin: auto;
}

.gallery-modal__arrow {
  display: none;
  padding: 1rem;
}

.gallery-modal__arrow::after {
  content: "";
  display: block;
  width: 20px;
  height: 46px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-image: url(../img/icon-chevron-right.svg);
}

.gallery-modal__arrow--prev::after {
  transform: rotate(180deg);
}

.gallery-modal__caption {
  color: var(--base-white);
  font-size: 16px;
  margin-top: 1rem;
  text-align: center;
}

@media only screen and (min-width: 30rem) {
  .gallery-modal::after {
    right: 2rem;
  }

  .gallery-modal__image {
    width: auto;
    max-width: 90%;
    border-radius: var(--border-radius);
  }
}

@media only screen and (min-width: 60rem) {
  .gallery-modal__image {
    max-width: 56rem;
  }

  .gallery-modal__arrow {
    display: block;
  }
}

/* "Link kopieren" Funktion */

.headline-anchor {
  display: inline-block;
  position: relative;
}

.headline-anchor__icon {
  display: none;
  position: absolute;
  cursor: pointer;
  font-size: 12px;
  line-height: 28px;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.headline-anchor__icon::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 2px;
  transform: rotate(-45deg) translateX(calc(-50% - 3px));
  background-color: var(--base-dark-grey);
  position: absolute;
  top: 28px;
  left: 50%;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 2;
}

.headline-anchor__icon--success::before {
  background-color: var(--accent-blue);
}

.headline-anchor__icon::after,
.headline-anchor__icon-text::after {
  content: "";
  display: block;
  width: 14px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-image: url(../img/icon-link--white.svg);
}

.headline-anchor:hover .headline-anchor__icon {
  display: flex;
  padding: 20px 0;
}

.headline-anchor__icon-text {
  width: 120px;
  padding: 0 12px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  background-color: var(--base-dark-grey);
  color: var(--base-white);
  z-index: 11;
}

.headline-anchor__icon-text::after {
  color: var(--base-white);
}

.headline-anchor__icon-text--success {
  background-color: var(--accent-blue) !important;
}

.headline-anchor__icon-text--success::after {
  background-image: url(../img/icon-check.svg);
}

.headline-anchor__icon::after {
  content: none;
}

@media only screen and (min-width: 60rem) {
  .headline-anchor__icon {
    top: 50%;
    transform: translateY(-50%);
    left: -34px;
    width: 70px;
  }

  .headline-anchor__icon::before {
    content: none;
  }

  .headline-anchor__icon:hover {
    left: -128.5px;
    width: 176px;
  }

  .headline-anchor__icon:not(:hover) .headline-anchor__icon-text {
    display: none;
  }

  .headline-anchor:hover .headline-anchor__icon {
    display: flex;
    padding: 20px 0;
  }

  .headline-anchor__icon:not(:hover)::after {
    content: "";
    background-image: url(../img/icon-link.svg);
  }
}

.location-marker {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.location-marker::before {
  content: "";
  display: inline-block;
  height: 18px;
  width: 13px;
  background-image: url("../img/location.svg");
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: 5px;
}
