@font-face {
  font-family: Futura;
  src: url("fonts/futura-book.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Futura Medium";
  src: url("fonts/futura-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #333;
  --sky: #92d4f0;
  --blue: #23a8e1;
  --link: #196583;
  --page-width: 1200px;
  --compact-header: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--compact-header);
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 19px/1.2em Futura, "Century Gothic", "Trebuchet MS", Arial, sans-serif;
}

img { display: block; max-width: 100%; height: auto; }
p, address { margin: 0 0 .8em; }
address { font-style: normal; }
strong, b { font-family: "Futura Medium", Futura, sans-serif; font-weight: 500; }
a { color: var(--link); text-underline-offset: .16em; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
button { color: inherit; font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid #10577b;
  outline-offset: 4px;
  box-shadow: 0 0 0 3px #fff;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10;
  padding: .75rem;
  background: #fff;
}

.container, .header-inner {
  width: min(86%, var(--page-width));
  margin-inline: auto;
}

.header-inner { width: min(96%, var(--page-width)); }

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  padding-top: 15px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { flex: 0 0 220px; }
.brand img { width: 100%; }
.site-header ul, .site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0 30px; padding-right: 15px; }
.site-header nav a {
  display: block;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  color: #000;
  font-size: 23px;
  line-height: normal;
  text-decoration: none;
}

.subpage .site-header nav a { color: var(--link); font-size: 19px; }
.site-header nav a:hover, .site-header nav a[aria-current] { border-bottom-color: var(--sky); }

.site-header.compact {
  position: fixed;
  padding: 6px 0;
  background: #fff;
  box-shadow: 0 1px 5px #0002;
  transition: transform .3s ease;
}

.compact .brand { flex-basis: 120px; }
.site-header.compact.is-away:not(:focus-within):not(:hover) { transform: translateY(-110%); }

.menu-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1500 / 888;
  max-height: 100vh;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30vh;
  background: linear-gradient(transparent, #0005);
  pointer-events: none;
}

.hero-photos { position: absolute; inset: 0; touch-action: pan-y; }
.hero-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s;
  user-select: none;
  pointer-events: none;
}

.hero-photos img:first-child, .hero-photos img.is-shown { opacity: 1; }

.join-badge {
  position: absolute;
  z-index: 1;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 172px;
  height: 172px;
  padding: 35px;
  border-radius: 50%;
  transform: rotate(-15deg);
  color: #fff;
  background: rgba(37, 169, 225, .8);
  font-family: "Futura Medium", Futura, sans-serif;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.join-badge span + span { margin-left: 12px; }
.join-badge::before {
  content: "";
  flex: 0 0 39px;
  width: 44px;
  margin-bottom: 5px;
  background: url("img/logo-icon.png") center / cover no-repeat;
}

.join-badge::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 3px solid white;
  border-radius: 50%;
  pointer-events: none;
}

.scroll-hint, .hero-pause {
  position: absolute;
  z-index: 1;
  bottom: 20px;
}

.scroll-hint { left: 50%; transform: translateX(-100%); }
.hero-pause {
  left: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #0008;
}

.hero-pause::before { content: ""; width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.hero-pause.is-paused::before { width: 0; height: 0; border: 0; border-left: 9px solid; border-block: 6px solid transparent; }

.section-banner { width: 100%; }
.section-content { padding-block: 170px; }
#ueber-uns { scroll-margin-top: calc(-1 * var(--compact-header)); }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2%; }
.about-logo { width: 80%; margin: 0 auto 10px; }
.about-text { margin-top: 30px; }
.about-text > :last-child { margin-bottom: 0; }

.section-heading {
  position: relative;
  isolation: isolate;
  margin: 0 0 .8em;
  padding-left: 20px;
  font-size: 25px;
  line-height: normal;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.section-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: min(220px, 100%);
  height: 15px;
  background: var(--sky);
}

.pdf-link {
  display: inline-block;
  margin-top: 10px;
  padding: 15px 30px;
  border: 2px solid var(--sky);
  color: var(--ink);
  line-height: normal;
  text-decoration: none;
  background: linear-gradient(var(--sky), var(--sky)) left / 100% 100% no-repeat;
  transition: background-size .3s;
}

.pdf-link::before { content: "»"; margin-right: 5px; }
.pdf-link:hover, .pdf-link:focus-visible { background-size: 0 100%; }

.story { display: flex; align-items: flex-start; gap: 35px; }
.story + .story { margin-top: 120px; }
.story:first-of-type .photos { order: 1; margin-right: 150px; }
.story + .story .photos { margin-left: 150px; }
.story + .story p { text-align: right; }
.photos { display: flex; gap: 15px; flex: 0 0 auto; max-width: 100%; }
.photos img { width: auto; height: 200px; transition: opacity .2s; }
.photos a:hover img { opacity: .75; }

#kontakt {
  padding-block: 170px;
  color: #fff;
  background: linear-gradient(#0009, #0009), url("img/kontakt-bg.jpg") center / cover no-repeat;
}

#kontakt .section-heading { padding: 0; }
#kontakt .section-heading::after { content: none; }
#kontakt a { color: var(--sky); }
.contact-text { max-width: 49%; }

.site-footer {
  padding: 35px 0 40px;
  color: #fff;
  background: var(--blue);
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner { display: grid; grid-template-columns: 40% 40% 20%; }
.footer-inner nav { text-align: right; }

.subpage { min-height: 100vh; display: flex; flex-direction: column; }
.subpage main { flex: 1; padding-block: 180px 130px; }
.imprint { overflow-wrap: anywhere; }
.privacy h1 { margin: 50px 0 40px; }
.privacy h2 { margin: 50px 0 20px; }
.privacy h1 + h2 { padding: 0; font: 500 19px "Futura Medium", Futura, sans-serif; }
.privacy h1 + h2::after { content: none; }
.privacy h3 { margin: 20px 0 10px; }
.privacy h4 { margin: 10px 0; }

.scroll-links {
  position: fixed;
  z-index: 4;
  right: 15px;
  bottom: var(--scroll-links-bottom, 30px);
  display: grid;
  gap: 8px;
  padding: 6px 3px;
  background: #fff;
  opacity: .7;
}

.scroll-links:hover, .scroll-links:focus-within { opacity: 1; }
.scroll-links a { display: grid; place-items: center; width: 24px; height: 24px; background: #555; }
.scroll-links a:hover { background: var(--link); }

.lightbox {
  position: fixed;
  inset: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 52px 54px;
  border: 0;
  color: white;
  background: rgba(25, 25, 25, .94);
}

.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: #191919; }
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 104px); object-fit: contain; }
.lightbox button {
  position: absolute;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: white;
  background: #fff2;
  font-size: 30px;
}

.lightbox-close { top: 0; right: 0; }
.lightbox-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lightbox button:disabled { visibility: hidden; }
.lightbox img { touch-action: pan-y pinch-zoom; }
.lightbox-count { position: absolute; top: 15px; left: 15px; color: #eee; font: 13px/1.2 Arial, sans-serif; }

@media (max-width: 1200px) {
  .story { gap: 20px; }
  .story:first-of-type .photos { margin-right: 0; }
  .story + .story .photos { margin-left: 0; }
  .story + .story { margin-top: 30px; }
}

@media (max-width: 1100px) {
  :root { --compact-header: 97px; }

  #ueber-uns { scroll-margin-top: 0; }

  .site-header, .site-header.compact {
    position: sticky;
    top: 0;
    padding: 15px 0;
    margin-bottom: -17px;
    background: #fff;
    box-shadow: 0 1px 5px #0002;
    transform: none;
  }

  .header-inner { flex-wrap: wrap; gap: 0; min-height: 67px; }
  .site-header .brand { flex-basis: 120px; }
  .site-header nav { flex-basis: 100%; }
  .header-inner:has(.menu-toggle:not([hidden])) nav {
    position: absolute;
    inset: 100% 0 auto;
    padding: 19px 2% 6px;
    max-height: calc(100dvh - var(--compact-header));
    overflow: auto;
    background: #fff;
    box-shadow: 0 5px 7px #0002;
  }

  .site-header ul { display: grid; padding-right: 0; gap: 5px; }
  .site-header nav a, .subpage .site-header nav a {
    padding: 15px 2%;
    border: 0;
    color: var(--ink);
    background: var(--sky);
    text-align: center;
    font-size: 23px;
  }

  .site-header nav a[aria-current], .site-header nav a:hover { background: var(--blue); }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 60px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .menu-icon, .menu-icon::after, .menu-icon::before {
    width: 40px;
    height: 2px;
    background: var(--ink);
  }

  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -11px; }
  .menu-icon::after { top: 11px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .section-banner { max-height: 400px; object-fit: cover; object-position: top; }
  .subpage main { padding-top: 30px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10%; }
  .footer-inner nav { grid-column: 1 / -1; margin-top: 10px; padding-top: 20px; border-top: 1px solid #0002; text-align: left; }
  .footer-inner ul { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 5px; }
  .footer-inner nav a { display: block; min-width: 180px; padding: 15px 9px; background: #0002; }
}

@media (max-width: 950px) {
  .photos img { height: 120px; }
}

@media (max-width: 850px) {
  .columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-text { max-width: none; }
}

@media (max-width: 800px) {
  .section-content { padding-block: 70px; }
  #kontakt { padding-block: 70px; }
  .story { flex-direction: column; }
  .story:first-of-type .photos { order: 0; }
  .story + .story p { text-align: left; }
  .photos img { height: 220px; }
}

@media (max-width: 720px) {
  .container { width: 82%; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-inner ul { display: grid; }
  .subpage .imprint { padding-bottom: 60px; }
  .scroll-links { right: 4px; bottom: 15px; }
}

@media (max-width: 600px) {
  .photos img { height: 130px; }
}

@media (max-width: 550px) {
  .join-badge { display: none; }
  .hero::after { height: 55%; }
  .hero-pause { bottom: 12px; left: 12px; }
}

@media (max-width: 360px) {
  .photos img { height: 100px; }
  .subpage .imprint { padding-bottom: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
