/* Fixes on top of the Wizzaro theme (23.10.2026). */

/* Header (logo, page title, menu button) in difference mode: dark on light pages, light over
   dark images. The header has its own stacking context (fixed, z-index), so the blend has to
   sit on the header itself; everything inside is drawn white and inverted by the blend. */
header { mix-blend-mode: difference; }
header #logo .black-logo { filter: invert(1); opacity: 1 !important; }
header #logo .white-logo { display: none !important; }
header .menu-info, header .menu-info * { color: #fff !important; }
header #burger-circle { background-color: #fff !important; border-color: #fff !important; }
header #menu-burger span { background-color: #000 !important; }

/* Slider arrows: same trick. They sit in the fixed footer of the showcase, which is the
   stacking context, so the blend goes there and the arrows are inverted to white. */
footer.after-slider { mix-blend-mode: difference; }
footer.after-slider #prev-slide, footer.after-slider #next-slide { filter: invert(1); }

/* Showcase titles: at the lower edge of the image over a dark fade instead of in the middle,
   where they collided with text in the images and ran edge to edge on phones. */
.section .img-mask::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, rgba(0,0,0,.3) 68%, rgba(0,0,0,.75) 100%);
}
/* The theme placed the caption box at top 20% with height 60vh, independent of the image box
   (60% of the section, on phones section height minus 240px). On phones vh counts the hidden
   browser bar, so the caption could end up below the image. Same geometry as .img-mask now. */
.section .section-caption-outer { display: block !important; padding: 0 !important; top: 20% !important; bottom: 20% !important; height: auto !important; }
@media only screen and (max-width: 767px) {
  .section .section-caption-outer { top: 120px !important; bottom: 120px !important; }
}
.section .section-caption-inner {
  display: flex !important; flex-direction: column; justify-content: flex-end; align-items: center;
  height: 100%; padding: 0 48px 34px;
  transform: none !important; /* the theme shifts this block down by script to centre it */
}
.section .section-title { text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.section .section-subtitle { color: rgba(255,255,255,.78) !important; }
@media (max-width: 767px) {
  .section .section-title { font-size: clamp(24px, 7.4vw, 34px) !important; line-height: 1.15 !important; }
  .section .section-caption-inner { padding: 0 44px clamp(48px, 9vh, 84px); }
}


/* Impressum and Datenschutz */
.legal p { margin-bottom: 1.4em; max-width: 720px; }
.legal a { text-decoration: underline; }
.legal-row { padding-top: clamp(150px, 22vh, 240px) !important; }

/* legal links at the bottom of the fullscreen menu (the showcase home has no visible footer) */
#menu-overlay .menu-legal {
  position: absolute; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom));
  text-align: center; font-size: 12px; letter-spacing: .02em;
}
#menu-overlay .menu-legal a { margin: 0 10px; opacity: .6; transition: opacity .2s; }
#menu-overlay .menu-legal a:hover { opacity: 1; }

/* The menu overlay was centred on 100vh, which on phones includes the browser bars, so the
   links sat too low. svh is the visible height. */
#menu-overlay, #menu-overlay .outer { height: 100vh; height: 100svh; }
#menu-overlay .outer { display: flex; align-items: center; justify-content: center; }
#menu-overlay .inner { width: 100%; text-align: center; }

/* back on the home slider: hidden and without transitions until it has jumped to the last slide */
.cz-restoring #showcase-holder { visibility: hidden; }
.cz-restoring #showcase-slider, .cz-restoring #showcase-slider * { transition: none !important; }

/* page title in the header ("Featured Projects"): visible at once instead of after the theme's ~1 s fade-in */
.menu-info { opacity: 1; }

/* Signal along the background X: a morse-like dash pattern travels slowly along each line, the two
   lines in opposite directions and at different speeds. Own layer, because .bg-lines is at 6 %. */
.cz-lines { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cz-lines line { stroke: rgba(0, 0, 0, .42); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.light-content .cz-lines line { stroke: rgba(255, 255, 255, .34); }
.cz-lines .a { stroke-dasharray: 3 22 1 14 9 38 2 18 24 300 2 12 6 40 1 508; animation: cz-signal 26s linear infinite; }
.cz-lines .b { stroke-dasharray: 1 30 14 16 2 9 4 420 18 24 1 12 3 446; animation: cz-signal 37s linear infinite reverse; }
@keyframes cz-signal { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }
@media (prefers-reduced-motion: reduce) { .cz-lines line { animation: none; } }

