/*
 * Site additions on top of the prebuilt style.bundle.css.
 * Values mirror the bundle (.subtitle, .content-text) so Markdown content
 * rendered by Eleventy looks like the original hand-written pages.
 */

/* Fonts served from the site itself instead of Google Fonts, so visitors'
   IP addresses aren't sent to Google. Coming Soon: Apache License 2.0.
   Josefin Sans: SIL Open Font License 1.1. Files from fonts.gstatic.com. */
@font-face {
  font-family: "Coming Soon";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/coming-soon-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/josefin-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/josefin-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Front page boxes */
.boxes .box-title {
  font-size: 1.7rem !important;
}
@media (min-width: 701px) {
  /* Boxes in a row share one height, and the hand-drawn frames stretch to fit
     the content instead of keeping the image's fixed shape */
  .boxes .box {
    display: flex;
    flex-direction: column;
  }
  .boxes .box-inner {
    flex: 1;
    min-height: 0;
    background-size: 100% 100% !important;
    padding: 22px 28px 26px;
  }
  .boxes .box:nth-of-type(3) .box-inner {
    padding: 14px 10px 16px;
  }
}
.boxes .box-inner > :first-child {
  margin-top: 0;
}
.boxes .box-inner ul {
  margin: 0;
}
.boxes .box-inner ul li {
  font-size: 1.1rem;
}
.boxes .box-video {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 654;
  background-color: #000;
}

/* Photos have mixed aspect ratios - keep every slide the same 16:9 frame */
.slider .slide {
  aspect-ratio: 16 / 9;
}
.slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Phone and e-mail links, in the same blue as the site's other links */
footer .footer-boxes .footer-box ul li a,
.page-body a {
  color: #337ab7;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Page body (Markdown content) */
.slider + .page-body {
  margin-top: 30px;
}
.page-body h2 {
  font-size: 35px;
  font-weight: 400;
  line-height: normal;
  margin: 42px 0 0;
}
.page-body > h2:first-child {
  margin-top: 0;
}
.page-body p {
  font-size: 17px;
  margin: 8px 0 1.5em;
}
.page-body > p:last-child {
  margin-bottom: 1em;
}
.page-body ul {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}
.page-body ul ul {
  margin-bottom: 0;
}
.page-body p:has(+ ul) {
  margin-bottom: 0;
}
.page-body .divider {
  margin-top: 42px;
}
.page-body ul.opening-hours {
  list-style: none;
  padding-left: 0;
}
.page-body img {
  height: auto;
}

/* Kontakt: map placeholder until the visitor asks for the map */
.map-frame,
.map-consent {
  display: block;
  width: 100%;
  height: 400px;
  border: 2px solid #000;
  box-sizing: border-box;
}
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background-color: #d0ffcf;
}
.map-consent-address {
  margin: 0;
  font-family: Coming Soon, cursive;
  font-size: 1.5rem;
  line-height: 1.3;
}
.map-consent-button {
  font-family: Coming Soon, cursive;
  font-size: 1.3rem;
  color: #000;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 8px 28px;
  cursor: pointer;
}
.map-consent-button:hover,
.map-consent-button:focus-visible {
  background-color: #ffeacf;
}
.map-consent-note {
  margin: 0;
  font-size: 0.95rem;
}
.map-consent-note a {
  color: #337ab7;
  text-decoration: none;
}

/* Self-hosted video on a content page */
.page-video {
  display: block;
  width: 100%;
  border: 2px solid #000;
  box-sizing: border-box;
  background-color: #000;
}

@media (max-width: 960px) {
  .page-body h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 700px) {
  /* Portraits stop floating here; keep the gap the old <p> wrapper gave them */
  .page-body .profile .portrait-img {
    margin-top: 8px;
  }
}
