:root {
  color-scheme: light;
  --ink: #181818;
  --indigo: #4b0082;
  --blue: #0072b3;
  --max-width: 70rem;
  font-family: Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: white;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: .2rem solid currentColor; outline-offset: .25rem; }
p { margin-block: 0 1em; max-width: 68ch; }
figure { margin: 0; min-width: 0; }
blockquote { margin: 0; }
h1, h2, h3, .brand {
  font-family: Raleway, "Avenir Next", Arial, sans-serif;
  font-weight: 500;
  line-height: 1.14;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .5em; }
.lead { font-size: 1.16rem; }

.skip {
  position: absolute;
  z-index: 2;
  padding: .65rem 1rem;
  background: white;
  transform: translateY(-120%);
}
.skip:focus { transform: none; }
.site-header { background: white; }
.header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(.55rem, 2vw, 1.2rem);
  margin-inline-start: auto;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 400;
  text-decoration: none;
}
.brand-logo {
  width: auto;
  height: 2.75rem;
  flex-shrink: 0;
}
body:has(> main > .hero) > .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  background: linear-gradient(rgb(25 0 45 / 36%), transparent);
  color: white;
  text-shadow: 0 1px 3px rgb(0 0 0 / 60%);
}

@media (max-width: 37rem) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .brand { order: -1; align-self: flex-end; }
}
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; column-gap: 1.2rem; row-gap: .35rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; }

.panel { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.frame { max-width: var(--max-width); padding-inline: 1.4rem; margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.6rem, 5vw, 5rem); }
.split.reverse figure { grid-column: 1; grid-row: 1; }
.split figure img { width: 100%; max-height: 35rem; object-fit: contain; }
.indigo { background: var(--indigo); color: white; }
.blue { background: var(--blue); color: white; }
.black { background: black; color: white; }
.vision h2 { color: var(--blue); }
.action {
  display: inline-block;
  margin-top: .35rem;
  border: 1px solid currentColor;
  padding: .65rem 1.1rem;
  text-decoration: none;
}
.action:hover { text-decoration: underline; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.gallery img { width: 100%; height: auto; }
.site-footer {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) 1.4rem;
}
.footer-logo {
  display: block;
  width: fit-content;
  margin: 0 auto 1.5rem;
}
.footer-logo img { width: auto; height: 6rem; }
.site-footer nav { justify-content: center; }

@media (max-width: 43rem) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.reverse figure { grid-column: auto; grid-row: auto; }
  .split figure img { max-height: 28rem; }
}

/* Halbtransparente Bildflächen der Startseite */
.hero,
main:has(> .hero) > .panel.black {
  display: grid;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero {
  --hero-overlay: rgb(75 0 130 / 50%);
  background-position: center 25%;
  min-height: 85vh;
  min-height: 85svh;
  background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url("startbild.avif");
}

main:has(> .hero) > .panel.black {
  --story-overlay: rgb(0 0 0 / 56%);
  min-height: 28rem;
  padding-block: clamp(4rem, 9vw, 8rem);
  background-image: linear-gradient(var(--story-overlay), var(--story-overlay)),
    url("ich-und-alle-anderen.avif");
}

.hero .split,
main:has(> .hero) > .panel.black .split {
  display: block;
  width: 100%;
}

.hero figure,
main:has(> .hero) > .panel.black figure {
  display: none;
}

.hero .copy,
main:has(> .hero) > .panel.black .copy {
  text-shadow: 0 1px 4px rgb(0 0 0 / 45%);
}

.hero .action {
  padding: .7rem 1.75rem;
  border-radius: .3rem;
  background: white;
  color: var(--ink);
  text-shadow: none;
}

main:has(> .hero) > .panel.black .copy {
  text-align: center;
}

main:has(> .hero) > .panel.black p {
  margin-inline: auto;
}

/* Bedienelemente für Bildergalerien und Abschnittswechsel */
.gallery-carousel { display: block; }
.gallery-carousel figure[hidden] { display: none; }
.gallery-carousel img {
  height: clamp(14rem, 52vw, 32rem);
  object-fit: contain;
}
.carousel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin-top: 1rem;
}
.carousel-controls button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.carousel-controls .carousel-arrow {
  font-size: 1.6rem;
  line-height: 1;
}
.carousel-controls button[aria-current="true"] { background: var(--ink); color: white; }
.blue .carousel-controls button[aria-current="true"] { background: white; color: var(--blue); }
.carousel-controls button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.carousel-status { flex-basis: 100%; margin: .2rem 0 0; text-align: center; }

.section-scroll {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 1.25rem auto 0;
  border-radius: 50%;
  background: rgb(230 230 230 / 20%);
}
.section-scroll::after {
  content: "";
  width: .65rem;
  height: .65rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-.15rem) rotate(45deg);
}
.section-scroll:hover { background: rgb(230 230 230 / 40%); }
.hero { position: relative; padding-bottom: max(clamp(2.5rem, 6vw, 5.5rem), 4rem); }
.hero .section-scroll { position: absolute; bottom: .9rem; left: 50%; margin: 0; transform: translateX(-50%); }
