:root {
  --paper: #f7f7f3;
  --ink: #202521;
  --muted: #68716b;
  --line: #d9ddd6;
  --accent: #a84030;
  --green: #30483e;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 92px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  transition: color 180ms ease;
}

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

.adsimple {
  text-decoration: underline;
}

.header {
  position: relative;
  width: auto;
  margin: 0;
}

.header .navbar.bg-nav {
  min-height: 78px;
  padding: 10px max(6vw, 24px);
  background: rgba(247, 247, 243, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.navbar-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}

.navbar .navbar-nav .nav-link {
  padding: 10px 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.navbar .nav-item:hover .nav-link,
.navbar .nav-item:active .nav-link {
  color: var(--accent);
}

.navbar-toggler {
  border-color: var(--line);
}

.hero__container {
  position: relative;
  isolation: isolate;
  height: calc(100svh - 260px);
  min-height: 500px;
  max-height: 820px;
  margin-top: 78px;
  overflow: hidden;
  background: #253b3a;
}

.hero__container::after {
  position: absolute;
  z-index: -1;
  background: rgba(16, 25, 24, 0.19);
  content: "";
  inset: 0;
}

.hero {
  position: absolute;
  z-index: -2;
  height: auto;
  background-image: url("../images/50x60/50x60-cyrrus.jpg");
  background-position: center 58%;
  background-size: cover;
  inset: 0;
}

.hero__intro {
  position: absolute;
  top: auto;
  left: max(8vw, 28px);
  width: min(690px, 82%);
  color: #fff;
  text-align: left;
  transform: none;
  animation: hero-arrive 700ms ease-out both;
  bottom: 54px;
}

.hero__eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__eyebrow {
  color: #f1c5a7;
}

.hero__heading {
  margin: 0;
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 400;
  line-height: 1.04;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.hero__text {
  max-width: 430px;
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.main {
  width: min(88%, 1360px);
  margin: 0 auto;
}

.section__art {
  margin: 0 auto;
  padding: 86px 0 110px;
}

.section__art h2,
.section__about h2,
.section__contact h2,
.section__impressum h2,
.section__data h2 {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
}

.section__art .section-kicker {
  margin-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 22px;
  grid-auto-rows: auto;
}

.grid__image {
  position: relative;
  max-width: none;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e5e7e1;
}

.grid__image:nth-child(2n):not(:last-of-type) {
  grid-row-end: auto;
}

.grid__image > a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.grid__image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  filter: none;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.grid__image:hover img {
  filter: none;
  transform: scale(1.035);
}

.overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  padding: 14px 17px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  text-align: left;
}

.grid__image:hover .overlay {
  color: var(--accent);
}

.section__about {
  margin: 0 calc((min(88vw, 1360px) - 100vw) / 2);
  padding: 84px max(calc((100vw - 1180px) / 2), 7vw);
  background: #e8ece6;
  line-height: 1.8;
}

.section__about h2 {
  margin-bottom: 28px;
}

.about__item,
.about__item:nth-child(2n) {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(48, 72, 62, 0.14);
  background: transparent;
}

.about__year {
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 700;
}

.about__history {
  margin-top: 12px;
}

.about__history summary {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.about__history summary::-webkit-details-marker {
  display: none;
}

.about__history summary::before {
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.about__history[open] summary::before {
  content: "-";
}

.about__entries {
  padding-top: 8px;
}

#summary a,
#summary a.collapsed:after,
#summary a:not(.collapsed):after {
  color: var(--accent);
  font-size: 14px;
}

.img-ingrid-container {
  padding: 0 0 0 42px;
}

.img-ingrid {
  width: 100%;
  border-radius: 0;
}

.section__contact {
  margin: 0 auto;
  padding: 88px 0 60px;
  text-align: left;
}

.section__contact h2 {
  margin-bottom: 24px;
}

.contact__adress p {
  margin: 0;
}

.contact__mail {
  margin-top: 20px;
}

.contact__mail a {
  color: var(--accent);
}

footer {
  margin: 0;
  padding: 22px max(6vw, 24px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer a,
.my-fixed-bottom a {
  color: var(--muted);
}

.main.galerie {
  padding-bottom: 24px;
}

.section__slider {
  margin-top: 122px;
}

.galerie__title {
  margin: 0 auto 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  text-align: left;
}

.section__slider .container {
  width: 100%;
  max-width: none;
  margin: 30px auto;
  padding: 0;
}

.gallery__thumbnails {
  display: flex;
  max-height: 66svh;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.gallery__thumbnail {
  flex: 0 0 auto;
  align-self: flex-start;
  width: max-content;
  padding: 3px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.gallery__thumbnail[aria-pressed="true"] {
  border-color: var(--accent);
}

.gallery__thumbnail img {
  display: block;
  width: 116px;
  height: 116px;
  object-fit: cover;
}

.gallery__slides {
  width: 100%;
  margin: auto;
  text-align: center;
}

.gallery__slides > [hidden] {
  display: none;
}

.gallery__slides > div:not([hidden]) {
  animation: gallery-slide-in 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.gallery__stage {
  position: relative;
  touch-action: pan-y;
}

.gallery__slides img {
  width: auto;
  max-width: 100%;
  max-height: 66svh;
  margin: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.gallery__previous,
.gallery__next,
.art-lightbox__previous,
.art-lightbox__next {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 21px;
  cursor: pointer;
}

.gallery__previous,
.gallery__next {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
}

.gallery__previous {
  left: 0;
}

.gallery__next {
  right: 0;
}

.galerie__meta {
  width: 100%;
  max-width: 700px;
  margin: 18px auto 0;
  color: var(--muted);
}

.image__title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
}

.galerie__count {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 12px;
}

.my-fixed-bottom {
  position: static;
  padding-left: max(6vw, 24px);
}

.section__impressum,
.section__data {
  min-height: 55vh;
  margin-top: 130px;
  padding: 50px 0;
}

.art-lightbox {
  position: fixed;
  width: min(94vw, 1500px);
  max-width: none;
  max-height: none;
  padding: 28px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #151a18;
  color: white;
  animation: lightbox-arrive 180ms ease-out both;
}

.art-lightbox::backdrop {
  background: rgba(9, 13, 12, 0.92);
}

.art-lightbox figure {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
}

.art-lightbox__previous,
.art-lightbox__next {
  position: absolute;
  top: 50%;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(21, 26, 24, 0.8);
  color: white;
  transform: translateY(-50%);
}

.art-lightbox__previous {
  left: 8px;
}

.art-lightbox__next {
  right: 8px;
}

.art-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80svh;
  object-fit: contain;
}

.art-lightbox figcaption {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--serif);
  font-size: 18px;
  text-align: center;
}

.art-lightbox__close {
  position: absolute;
  top: 8px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  color: white;
  font-family: var(--sans);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.art-lightbox__close:focus-visible,
.hero__link:focus-visible,
.navbar a:focus-visible,
.gallery__slides img:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lightbox-arrive {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes gallery-slide-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .header .navbar.bg-nav {
    min-height: 68px;
    padding: 8px 20px;
  }

  .navbar-brand {
    font-size: 23px;
  }

  .navbar-collapse {
    padding: 8px 0 12px;
  }

  .navbar .navbar-nav .nav-link {
    padding: 8px 0;
  }

  .hero__container {
    height: calc(100svh - 205px);
    min-height: 430px;
    margin-top: 68px;
  }

  .hero {
    background-position: 52% center;
  }

  .hero__intro {
    bottom: 32px;
    left: 24px;
    width: calc(100% - 48px);
  }

  .hero__heading {
    font-size: 49px;
  }

  .hero__text {
    max-width: 330px;
    font-size: 15px;
  }

  .main {
    width: 90%;
  }

  .section__art {
    padding: 62px 0 78px;
  }

  .section__art h2,
  .section__about h2,
  .section__contact h2,
  .section__impressum h2,
  .section__data h2 {
    margin-bottom: 24px;
    font-size: 36px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .grid__image {
    aspect-ratio: 3 / 4;
  }

  .overlay {
    padding: 10px 11px;
    font-size: 16px;
  }

  .section__about {
    margin-right: -5.56vw;
    margin-left: -5.56vw;
    padding: 62px 5.56vw;
  }

  .img-ingrid-container {
    margin-top: 32px;
    padding: 0;
  }

  .section__contact {
    padding: 64px 0 44px;
  }

  .section__slider {
    margin-top: 100px;
  }

  .galerie__title {
    font-size: 34px;
  }

  .gallery__slides {
    width: 100%;
  }

  .gallery__slides img {
    width: auto;
    max-width: 100%;
    max-height: 62svh;
  }

  .gallery__thumbnails {
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 14px;
  }

  .gallery__thumbnail img {
    width: 70px;
    height: 70px;
  }

  .art-lightbox {
    width: 100vw;
    padding: 48px 14px 18px;
    border: 0;
  }

  .art-lightbox img {
    max-height: 76svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
