/* beatcurti.ch – static rebuild of the former WordPress (Werkstatt theme) site */

@font-face { font-family: Karla; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/karla.woff2) format("woff2"); }
@font-face { font-family: Karla; font-style: italic; font-weight: 200 800; font-display: swap; src: url(../fonts/karla-italic.woff2) format("woff2"); }

:root {
  --ease: cubic-bezier(.35, .3, .2, .85);
  --heading: futura-pt, BlinkMacSystemFont, -apple-system, Roboto, "Lucida Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Karla, BlinkMacSystemFont, -apple-system, Roboto, "Lucida Sans", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .015em;
  word-spacing: .001em;
  color: #505050;
  background: #fefefe;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#wrapper { min-height: 100vh; }
main { display: flow-root; }
img, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; border: 0; }
a { color: #1f1f1f; text-decoration: none; }
b, strong { font-weight: 700; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  font-weight: 600;
  color: #1f1f1f;
  margin: 0 0 .5rem;
  line-height: 1.3;
  text-rendering: optimizeLegibility;
}
h1 { font-size: 34px; letter-spacing: .01em; margin-bottom: 10px; }
h4 { font-size: 23px; letter-spacing: .02em; margin-bottom: 20px; }
h5 { font-size: 18px; letter-spacing: .02em; }
@media (min-width: 64.0625em) { h1 { font-size: 42px; } }
@media (min-width: 75.0625em) { h1 { font-size: 60px; } }
p { font-size: 17px; line-height: 1.6; margin: 0 0 1.55rem; }

/* ---- grid (Foundation flex grid as used by the theme) ---- */
.row { display: flex; flex-flow: row wrap; max-width: 112.5rem; margin: 0 auto; }
.row.full { width: 100%; max-width: 100%; }
.row .row { max-width: none; margin: 0 -.625rem; }
.row.max { max-width: 111.25rem; margin: 0 auto; padding: 0; }
.row.center { justify-content: center; }
.row.mid { align-items: center; }
.row.fh { min-height: 100vh; }
.row.fh .col-inner { display: flex; flex-direction: column; justify-content: center; }
.col { flex: 1 1 0; min-width: 0; padding: 0 .625rem; position: relative; }
.row.ncp > .col { padding: 0; }
.col-inner { width: 100%; }
.col:not(.fullh) > .col-inner { height: 100%; }
.col.fullh { display: flex; min-height: 100vh; }
.col.tc { text-align: center; }
.s-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 40.0625em) {
  main > .row { padding-left: 35px; padding-right: 35px; }
  main > .row.np { padding-left: 0; padding-right: 0; }
  .row .row { margin: 0 -.9375rem; }
  .row .row.max, .row.max { margin: 0 auto; padding: 0 35px; }
  .row .row:not(.max) { padding: 0; }
  .col { padding: 0 .9375rem; }
  .m-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
  .m-6 { flex: 0 0 50%; max-width: 50%; }
  .m-10 { flex: 0 0 83.33333%; max-width: 83.33333%; }
  .m-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 64.0625em) {
  .l-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
  .l-6 { flex: 0 0 50%; max-width: 50%; }
  .l-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
  .l-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ---- content blocks ---- */
.text :last-child { margin-bottom: 0; }
.text a { display: inline-block; position: relative; }
.text a::after {
  content: ""; position: absolute; top: 100%; left: 0; width: 100%;
  border-bottom: 2px solid #1f1f1f;
  transform: scaleX(0); transform-origin: 0 0;
  transition: transform .25s var(--ease);
}
.text a:hover::after { transform: scaleX(1); }
.light { color: #fff; }
.light h1, .light h2, .light h3, .light h4, .light h5, .light h6, .light p, .light .text a { color: #fff; }
.light .text a::after { border-bottom-color: #fff; }
.shadow { text-shadow: 0 0 5px #000; }

/* parallax header rows */
.row.parallax { position: relative; overflow: hidden; }
.row.parallax > .col { z-index: 1; }
.parallax-bg {
  position: absolute; left: 0; top: 0; width: 100%; height: 150%;
  background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;
  pointer-events: none; will-change: transform;
}

/* youtube */
.video { margin: 0 auto; }
.video-ratio { position: relative; padding-top: 56.25%; height: 0; overflow: hidden; }
.video-ratio iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* self hosted mp4 */
.mp4 { max-width: 100%; margin: 0 auto; line-height: 0; }
.mp4 video { display: block; width: 100%; height: auto; background: #000; }

/* gallery grid (FooGallery default template) */
.gallery { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; padding-left: 10px; margin-bottom: -10px; line-height: 0; }
.gallery-item {
  position: relative; display: block; margin: 0 10px 10px 0; overflow: hidden;
  background: #eee; box-shadow: inset 0 0 0 1px #ddd;
}
.gallery-item img { display: block; transition: transform .3s ease, opacity .3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 10px; background: rgba(0, 0, 0, .6); color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px; line-height: 1.3; text-align: center;
  opacity: 0; transition: opacity .3s ease;
}
.caption-title { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.caption-desc { display: block; }
.gallery-item:hover .caption, .viewer-item:hover .caption { opacity: 1; }

/* image viewer (FooGallery image viewer template) */
.viewer { width: 100%; text-align: center; line-height: 0; font-family: "Open Sans", sans-serif; }
.viewer-inner { display: inline-block; position: relative; max-width: 100%; }
.viewer-item { display: none; position: relative; overflow: hidden; margin-bottom: 4px; }
.viewer-item.active { display: block; }
.viewer-item img { display: block; }
.viewer-ctrls {
  display: flex; justify-content: space-between; align-items: center;
  height: 40px; padding: 1px 4px 5px; background: #fff; color: #333;
  font-size: 14px; line-height: 34px;
}
.viewer-prev, .viewer-next {
  width: 80px; height: 34px; padding: 0; border: 0; cursor: pointer;
  background: #fff; color: #333; box-shadow: inset 0 0 0 1px #ddd;
  font: inherit; font-size: 0;
}
.viewer-prev::before, .viewer-next::before { font-size: 18px; line-height: 34px; }
.viewer-prev::before { content: "\2190"; }
.viewer-next::before { content: "\2192"; }
.viewer-prev:hover, .viewer-next:hover { background: #f2f2f2; }
.viewer-count { font-size: 18px; line-height: 34px; }

/* ---- header / menu ---- */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; display: flex; justify-content: flex-end; padding: 18px 50px 0; pointer-events: none; }
@media (min-width: 75em) { .header { padding-top: 0; } }
.menu-toggle {
  pointer-events: auto;
  position: relative; display: block; width: 44px; height: 44px; margin-top: 10px;
  background: rgba(255, 255, 255, .56); transform: scale(1.1); transform-origin: right;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute; right: 12px; width: 20px; height: 2px; border-radius: 2px; background: #1f1f1f;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }

.menu {
  position: fixed; top: 0; right: 0; z-index: 110; height: 100%; width: 90%;
  padding: 30px; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #1f1f1f;
  transform: translate3d(100%, 0, 0);
  transition: transform .5s var(--ease);
  visibility: hidden;
}
@media (min-width: 40.0625em) { .menu { width: 75%; padding: 30px 50px; } }
@media (min-width: 64.0625em) { .menu { width: 40%; padding: 50px 70px; } }
@media (min-width: 75.0625em) { .menu { padding: 70px 90px; } }
.menu-open .menu { transform: translate3d(0, 0, 0); visibility: visible; }
.menu-close { position: absolute; top: 10px; right: 10px; width: 30px; line-height: 1; }
@media (min-width: 40.0625em) { .menu-close { top: 30px; right: 30px; } }
.menu-close svg { display: block; width: 30px; height: 30px; fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 2; }
.menu-lang { display: flex; overflow: hidden; min-height: 23px; margin-bottom: 20px; }
@media (min-width: 40.0625em) { .menu-lang { margin-bottom: 25px; } }
.menu-lang a { position: relative; display: inline-flex; margin-right: 14px; color: #969696; text-transform: capitalize; }
.menu-lang a::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 100%;
  border-bottom: 1px solid #fff; transform: scaleX(0); transform-origin: 0 0;
  transition: transform .25s var(--ease);
}
.menu-lang a.active, .menu-lang a:hover { color: #fff; }
.menu-lang a.active::after, .menu-lang a:hover::after { transform: scaleX(1); }
.menu-list { list-style: none; margin: 0 0 30px; padding: 0; }
.menu-list li { line-height: 1.4; overflow: hidden; padding-right: 10px; }
.menu-list a { position: relative; display: inline-block; white-space: nowrap; font-weight: 700; font-size: 28px; color: #fff; }
.menu-list a::before {
  /* hover/current fill: grey copy wipes in from the left */
  content: attr(data-label); position: absolute; top: 0; left: 0; overflow: hidden;
  width: 0; color: #bfbfbf; white-space: nowrap; transition: width .4s var(--ease);
}
.menu-list a:hover::before { width: 100%; }
.menu-footer { display: flex; overflow: hidden; margin-top: 30px; color: rgba(255, 255, 255, .5); font-size: 14px; }
.menu-footer p { margin: 0; font-size: inherit; line-height: 1.4; color: inherit; }

/* reveal of menu entries (theme "style1" animation) */
.menu-lang a, .menu-list .menu-link, .menu-footer p { display: inline-block; transform: translateY(100%); transition: transform .2s var(--ease); }
.menu-open .menu-lang a, .menu-open .menu-list .menu-link, .menu-open .menu-footer p { transform: translateY(0); }

.click-capture { position: fixed; inset: 0; z-index: 109; visibility: hidden; }
.menu-open .click-capture { visibility: visible; }

/* scroll to top */
.to-top {
  position: fixed; right: 15px; bottom: -50px; z-index: 100;
  display: flex; justify-content: center; align-items: center;
  width: 40px; height: 40px; border-radius: 20px; border: 1px solid #dedede; background: transparent;
  transition: bottom .3s var(--ease), background .2s, border-color .2s;
}
@media (min-width: 40.0625em) { .to-top { right: 50px; } }
.to-top svg { fill: #dedede; }
.to-top.active { bottom: 15px; }
@media (min-width: 40.0625em) { .to-top.active { bottom: 50px; } }
.to-top:hover { background: #404040; border-color: #404040; }
.to-top:hover svg { fill: #fff; }

/* ---- animations ---- */
.js .fade { opacity: 0; transition: opacity .5s var(--ease); }
.js .fade.in { opacity: 1; }
.js #wrapper { animation: page-in 1s var(--ease) both; }
.js.page-out #wrapper { animation: page-out .5s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes page-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js .fade { opacity: 1; transition: none; }
  .js #wrapper, .js.page-out #wrapper { animation: none; }
}

/* ---- lightbox (look of the former FooBox) ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-frame {
  position: relative; margin: 0; background: #fff; border: 8px solid #fff; border-radius: 6px;
  box-shadow: 0 0 12px rgba(0, 0, 0, .4); line-height: 0;
}
.lightbox-frame img {
  display: block; width: auto; height: auto; border-radius: 3px;
  max-width: calc(100vw - 112px); max-height: calc(100vh - 112px);
}
.lightbox-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 40px; border-radius: 0 0 3px 3px;
  background: rgba(0, 0, 0, .7); color: #fff; font-size: 14px; line-height: 1.4; text-align: center;
}
.lightbox-frame figcaption:empty { display: none; }
.lightbox-frame figcaption b { display: block; }
.lightbox-count { position: absolute; left: 0; right: 0; top: 100%; margin-top: 12px; color: #888; font-size: 10px; line-height: 1; text-align: center; }
.lightbox button {
  position: absolute; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  background: #fff; color: #666; border: 3px solid transparent;
}
.lightbox button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.lightbox button:hover { color: #000; }
.lightbox-prev, .lightbox-next { top: 50%; width: 36px; height: 106px; margin-top: -53px; }
.lightbox-prev { right: 100%; margin-right: 4px; border-radius: 6px 0 0 6px; box-shadow: -2px 0 2px rgba(0, 0, 0, .4); }
.lightbox-next { left: 100%; margin-left: 4px; border-radius: 0 6px 6px 0; box-shadow: 2px 0 2px rgba(0, 0, 0, .4); }
.lightbox-close { top: -21px; right: -21px; width: 34px; height: 34px; border-radius: 50%; border-color: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .4); }
