@font-face {
    font-family: 'bornabold';
    src:
    url('../fonts/borna-bold-webfont.woff2') format('woff2'),
    url('../fonts/borna-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    }
@font-face {
    font-family: 'bornaregular';
    src:
    url('../fonts/borna-regular-webfont.woff2') format('woff2'),
    url('../fonts/borna-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    }

html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;}

body {
	line-height: 1em;
	padding: 1em !important;
	background: #fff;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

	blockquote:before, blockquote:after, q:before, q:after {
		content: '';
		content: none;
	}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	-webkit-text-size-adjust: none;
}

mark {
	background-color: transparent;
	color: inherit;
}





:root {
  --clip-x: calc(100vw - 1rem - 0.6rem);
  --clip-y: 1.6rem;
}





/* Cross-document (home ↔ album) view transitions. */
@view-transition { navigation: auto; }

/* Theme-toggle circle reveal — scoped to its own type so it does NOT fire on
   page navigations (those get a plain cross-fade + the thumb→hero morph). */
:root:active-view-transition-type(theme)::view-transition-old(root) {
  animation-delay: 500ms;
}
:root:active-view-transition-type(theme)::view-transition-new(root) {
  animation: circle-in 500ms;
}

/* Shared element that morphs from a home gallery thumb into the album hero. */
.vt-hero { view-transition-name: album-hero; }

::view-transition-group(album-hero) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes move-in {
  from { translate: 0 -100%; }
  to { translate: 0  0; }
}

@keyframes circle-in {
  from { clip-path: circle(0% at var(--clip-x) var(--clip-y)); }
  to { clip-path: circle(120% at 50% 0%); }
}







* {
	font-family: 'bornabold', sans-serif;
	font-weight: normal;
	font-size: 1rem;
	line-height: 1.2em;
	color: #000;
}

h1 {
	font-size: 1.5rem;
	padding-block: 0.5em;
}



#logo {
	width: 40px;
}

/* Header is a sticky overlay pinned on top of the scrolling content.
   top:1em matches the body's 1em frame so it doesn't jump when it sticks. */
#header {
	position: sticky;
	top: 1em;
	z-index: 2000;
}



/* Re-enable clicks on the logo link (header disables pointer events). */
#logolink {
	display: inline-block;
	pointer-events: auto;
	cursor: pointer;
}

header {
	mix-blend-mode: difference;
}

/* Title + tagline fade out once the intro text nears the top (toggled in JS);
   the logo stays as the persistent home link. */
#header h1,
#header p {
	color: #fff;
	transition: opacity 0.4s ease;
}

#header.hide-taglines h1,
#header.hide-taglines p {
	opacity: 0;
}

/* Black footer, sticky at the bottom and revealed as the content scrolls up
   off it (mirrors the slideshow reveal at the top). Always black, full-bleed
   to the viewport edges past the body's 1em frame. */
footer {
	position: sticky;
	bottom: 0;
	z-index: 0;
	background: #000;
	margin-inline: -1em;
	margin-bottom: -1em;
	padding-block: 6rem 5rem;
	padding-inline: 1em;
}

footer,
footer p,
footer a,
.dark footer,
.dark footer p,
.dark footer a {
	color: #fff;
}

/* Opaque layers that scroll up over the sticky slideshow and footer.
   z-index 2 sits above the slideshow (1)/footer (0) and below the header (2000). */
#intro-text,
#gallery-section {
	position: relative;
	z-index: 2;
	background: #fff;
}

.dark #intro-text,
.dark #gallery-section {
	background: #000;
}

body.home header p {
	color: #000;
	font-weight: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.dark body.home header p {
	color: #f0f0f0;
}

header,
header * {
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

@media (hover: none) { 
	main {
		user-select: none;
		-webkit-user-select: none;
	}
}
	
footer p,
footer a {
	mix-blend-mode: normal;
}

footer span {
	display: block;
	/* margin-top: 3rem; */
}

footer span a {
	font-family: sans-serif;
	font-size: 0.6rem;
}

body.txt p {
	font-family: sans-serif;
	margin-bottom: 1em;
	hyphens: auto;
}

body.txt p a {
	mix-blend-mode: normal;
}

 .slideshow {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  z-index: -10;
	display: none;
  transform: scale(var(--slide-scale, 1));
  transform-origin: top center;
}

.slideshow.visible {
	display: block;
}

.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation-play-state: running;
}

/* Album hero: a single, static image (no fade animation). */
.slideshow.single .slide {
  opacity: 1;
  animation: none;
}

main {
	cursor: none;
	position: sticky;
	top: var(--header-h, 8rem);
	z-index: 1;
	margin-inline: -1em;
	margin-top: -1em;
	background: #fff;
}

.dark main {
	background: #000;
}

/* Once the content has fully scrolled over the slideshow, hide it (keeping its
   layout box so the page doesn't jump) and pause the animation. */
main.is-covered  {
	visibility: hidden;
}

main.is-covered .slide {
	animation-play-state: paused !important;
}

/*
main:hover {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><circle cx='16' cy='16' r='15' fill='black'/><rect x='13' y='11' width='2' height='10' fill='white'/><rect x='17' y='11' width='2' height='10' fill='white'/></svg>") 16 16, auto;
}

main.paused:hover {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><circle cx='16' cy='16' r='15' fill='black'/><polygon points='13,11 13,21 21,16' fill='white'/></svg>") 16 16, auto;
}
*/   


#themebutton {
	font-size: 0;
	width: 1.2rem;
	height: 1.2rem;
	background: #000;
	border: none;
	border-radius: 2rem;
	position: fixed;
	right: 1rem;
	top: 1rem;
	z-index: 2000;
	cursor: pointer;
}



.dark {
  body {
	background-color: #000;
	color: #f0f0f0;
  }

  h1, p, p strong, a:not(.segment) {
	color: #f0f0f0;
  }



	#themebutton {
		background: #f0f0f0;
	}

	.segmented-control {
	    background: rgba(255, 255, 255, 0.5);
	}
	
}


/* Custom Cursor */
#custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 1000000;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

/* Inhalt über CSS-Hintergrund – Standard: Pause */
#custom-cursor::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><circle cx='16' cy='16' r='15' fill='black'/><rect x='13' y='11' width='2' height='10' fill='white'/><rect x='17' y='11' width='2' height='10' fill='white'/></svg>");
}

/* Beim Hover aktivieren */
main:hover + #custom-cursor {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Klasse für "Play"-Symbol */
#custom-cursor.playing::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><circle cx='16' cy='16' r='15' fill='black'/><polygon points='13,11 13,21 21,16' fill='white'/></svg>");
}

/* + cursor over gallery thumbnails */
#custom-cursor.gallery {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
#custom-cursor.gallery::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><circle cx='16' cy='16' r='15' fill='black'/><rect x='15' y='10' width='2' height='12' fill='white'/><rect x='10' y='15' width='12' height='2' fill='white'/></svg>");
}

/* × cursor when zoom lightbox is open */
#custom-cursor.zoom-close {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
#custom-cursor.zoom-close::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><circle cx='16' cy='16' r='15' fill='black'/><rect x='15' y='9' width='2' height='14' fill='white' transform='rotate(45 16 16)'/><rect x='15' y='9' width='2' height='14' fill='white' transform='rotate(-45 16 16)'/></svg>");
}

/* Hide default cursor on zoom overlay and zoomed image */
.medium-zoom-overlay,
.medium-zoom-image--opened {
  cursor: none !important;
}

/* Deaktiviert auf Touch-Geräten */
@media (hover: none) {
  main {
    cursor: default;
  }
  #custom-cursor {
    display: none;
  }
}






.segmented-wrapper {
  max-width: calc(100vw - 10px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 10px;
  -webkit-overflow-scrolling: touch;
  position: fixed;
  bottom: 10px;
  left: 50%;
  translate: -50%;
  scrollbar-width: none; /* Firefox */
  z-index: 1000;
}
.segmented-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.segmented-control {
  display: inline-flex;
  position: relative;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  white-space: nowrap;
  gap: 4px;
}

.segment {
  display: inline-block;
  text-decoration: none;
  color: #000;
  background: transparent;
  padding: 12px 24px;
  border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.segment:hover {
  background: rgba(0,0,0,0.05);
}

.segment.active {
  color: #fff;
}

/* Album page back button — standalone floating pill, same position/shape as
   the genre nav but its own markup so no tab JS runs on it. */
.back-nav {
  position: fixed;
  bottom: 15px;
  left: 50%;
  translate: -50%;
  z-index: 1000;
}
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 12px 24px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.dark .back-button { background: #fff; color: #000; }

/* Bouncy grow on hover, shared by the floating buttons. */
.back-button,
#scrolltop,
#themebutton {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.back-button:hover,
#scrolltop:hover {
  transform: scale(1.12);
}
#themebutton:hover {
  transform: scale(1.25);
}

/* Scroll-to-top button — same solid black pill as the back button, with the
   same arrow rotated 90° to point up. */
#scrolltop {
  position: fixed;
  bottom: 4.5rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1500;
}

body.album #scrolltop {
  bottom: 1rem;
}

#scrolltop.visible {
  opacity: 1;
  pointer-events: auto;
}
#scrolltop::before {
  content: "←";
  display: block;
  line-height: 1;
  transform: rotate(90deg);
}
.dark #scrolltop { background: #fff; color: #000; }

.segment:focus {
  outline: none;
}

.segment:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.9);
  box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: -1;
  pointer-events: none;
}




@media only screen and (max-width: 569px) {
  .slideshow {
    height: auto;
    aspect-ratio: 2 / 3;
    margin-inline: 1em;
    width: calc(100% - 2em);
  }
}

@media only screen and (min-width: 570px) {
	footer {
		padding-block-start: 8rem;
	}
}




/* Intro text */

#intro-text {
  margin-inline: -1em;
  padding: 4rem 2em 3rem;
}

#intro-text p,
#intro-text p a,
#intro-text p strong {
	font-family: bornaregular, sans-serif;
	font-size: clamp(1.35rem, 3.5vw, 7rem);
	line-height: 1.2;
	mix-blend-mode: normal;
}

#intro-text p a,
#intro-text p strong {
	font-family: bornabold, sans-serif;
}

#intro-text p strong {
	padding-inline-end: 2em;
}




/* Thumbnail gallery */

/* medium-zoom appends its overlay + zoomed clone to <body> with no z-index,
   so they must be forced above the positioned content layers (z-index 2)
   and the sticky header (z-index 2000), or the zoom hides behind them. */
.medium-zoom-overlay {
  z-index: 9000 !important;
}
.medium-zoom-image--opened {
  z-index: 9001 !important;
}

#gallery-section {
  padding-block: 7rem;
  padding-inline: 2em;
  margin-inline: -1em;
}

.gallery {
  display: none;
}

.gallery.visible {
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 4px;
  column-gap: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.grid.is-ready {
  opacity: 1;
}

.grid-item {
  display: block;
  padding-bottom: 1.5rem;
  cursor: none;
  /* leave room for the sticky header when jumping back to a thumb via #anchor */
  scroll-margin-top: calc(var(--header-h, 7rem) + 2rem);
}

.grid-item .album-link,
.grid-item .pswp-item {
  display: block;
  cursor: none;
}

/* Hero image on album pages is a PhotoSwipe item — make the whole hero clickable. */
.hero-link {
  position: absolute;
  inset: 0;
  display: block;
  cursor: none;
}

/* White PhotoSwipe theme to match the home lightbox: white background, black
   icons/text with a white halo so they stay visible over dark photos too. */
.pswp {
  --pswp-bg: #fff;
  --pswp-icon-color: #000;
  --pswp-icon-color-secondary: #fff;
  --pswp-icon-stroke-color: #fff;
  --pswp-icon-stroke-width: 2px;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: none;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.6s ease, filter 0.6s ease, margin 0.6s ease;
}

/* Hover scale lives on the img (not the wrapper) so medium-zoom,
   which controls the img's transform on open, isn't fighting an
   ancestor transform that would break its centering. */
.grid-item img:hover {
  transform: scale(1.08);
  position: relative;
  z-index: 2;
}

/* CSS-driven + cursor — :has() is supported in all modern browsers.
   This fires directly on CSS hover state so JS timing is irrelevant. */
@media (hover: hover) {
  body:has(.grid-item:hover) #custom-cursor {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  body:has(.grid-item:hover) #custom-cursor::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><circle cx='16' cy='16' r='15' fill='black'/><rect x='15' y='10' width='2' height='12' fill='white'/><rect x='10' y='15' width='12' height='2' fill='white'/></svg>");
  }
}

.grid-item img.lazy:not(.loaded) {
  filter: blur(20px);
  opacity: 0;
  margin-top: 50px;
}

.grid-item img.lazy.loaded {
  opacity: 1;
  margin-top: 0;
}

/* While medium-zoom is measuring/animating, neutralize the hover scale so the
   thumbnail is measured and restored at its true 1:1 size (kills the bounce). */
.grid-item img.zooming {
  transform: none !important;
  transition: none !important;
}

@media only screen and (min-width: 570px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }

  .grid-item {
    padding-bottom: 2rem;
  }
}




/* Contact form */

.footer-body {
  display: flex;
  gap: 4em;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.footer-body section {
  flex-shrink: 0;
}

.footer-cta {
  flex-shrink: 0;
}

.footer-cta p {
  font-family: bornabold, sans-serif;
  font-size: clamp(1.5rem, 4vw, 5rem);
  line-height: 1.1;
  color: #fff;
}

#contact-wrap {
  flex: 1;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-family: bornaregular, sans-serif;
  font-size: 1rem;
  padding: 0.5em 0;
  outline: none;
  -webkit-text-fill-color: #fff;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
  border-bottom-color: #fff;
}

#contact-form ::placeholder {
  color: rgba(255,255,255,0.35);
  opacity: 1;
}

/* Override browser autofill background */
#contact-form input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #000 inset;
  -webkit-text-fill-color: #fff;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

#contact-form textarea {
  resize: vertical;
  min-height: 80px;
  margin-top: 1.5em;
}

.cf-legal {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  margin-top: 1.5em;
  cursor: pointer;
}

.cf-legal input[type="checkbox"] {
  margin-top: 0.15em;
  flex-shrink: 0;
  accent-color: #fff;
}

.cf-legal span,
.cf-legal a {
  font-family: bornaregular, sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

#contact-submit {
  display: inline-block;
  margin-top: 1.5em;
  background: #fff;
  color: #000;
  border: none;
  padding: 0.55em 1.8em;
  border-radius: 999px;
  font-family: bornabold, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#contact-submit:hover {
  transform: scale(1.08);
}

#contact-submit:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

#contact-success {
  font-family: bornaregular, sans-serif;
}

footer {
  visibility: hidden;
}

footer.visible {
  visibility: visible;
}

@media only screen and (max-width: 569px) {
  .grid {
    column-gap: 0.5rem;
  }

  .grid-item {
    padding-bottom: 0.5rem;
  }

  .footer-body {
    flex-direction: column;
    gap: 2.5em;
  }

  .cf-row {
    grid-template-columns: 1fr;
  }
}
