
#nav-gradient {
	position:fixed;
	inset:0;
	pointer-events:none;
	z-index:-1;
}

.nav-gradient-layer {
	position:absolute;
	inset:0;
	opacity:0;
	transition:opacity 0.45s ease;
	background-attachment:fixed;
	background-image:radial-gradient(circle, #fff 40%, #ddd 100%);
}

.nav-gradient-layer.active {
	opacity:1;
}



#bignav {
	position:fixed;
	left:0;
	top:var(--marg);
	width:var(--lefter);
	bottom:var(--marg);
	box-sizing: border-box;
	padding-right:var(--marg);
	border-right:2px solid var(--fg);
	display:flex;
	flex-direction:column;
	justify-content:flex-end;
}

#bignav a {
    display:block;
	text-align:right;
	font-size:1.25em;	
	opacity:0.5;
	margin:0;
    margin-top:10px;
}
#bignav a:hover {
	cursor:pointer;
	opacity:0.75;
}
#bignav a.selected {
	font-size:2em;
	opacity:1;
}


#content {
	margin-left:var(--lefter);
	margin-right:0;
	min-width:450px;
}
#content img, #content video {
	width:100%;
	
	margin-bottom:var(--small-marg);
	margin-right:var(--small-marg);
}
#content img.smol {
	
    width:150px;
    height:115px;
	object-fit: cover;
	float:left;
}
#content h1 {
	font-size:3.2em;
	line-height:0.9;
	margin-top:var(--marg);
	margin-bottom:5px;
}
#content h2 {
	font-size:1.7em;
	opacity:0.5;
	line-height:1.1;
	margin-bottom:var(--small-marg);
	margin-top:75px; /* this is usually over-ridden */
}  

#content h1 + h2 {
    margin-top:0;
}
#cowscore_bg {
	background-image: url('https://www.janstudt.de/images/cow_pattern.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position:absolute;
	top:0;
	right:0;
	bottom:0;
	width:calc( var(--righter) - var(--marg) ) ;	
}    


#content .entry {
	scroll-snap-align: start;
	min-height:100vh;
	width:100%;
	padding:var(--marg);
	padding-right:var(--righter);	
	box-sizing: border-box;
	position:relative;
}
#content p {
	margin:0;
	padding:0;
	margin-bottom:var(--small-marg);
}

#content .mline, #content .sline {
    clear:both;
    margin-bottom:var(--small-marg);
}



#content .audio-card {
    width:100%;
    max-width:280px;
    float:left;
    margin-right:var(--small-marg);
    margin-bottom:var(--small-marg);
}

#content .audio-card img {
    width:100%;
    max-width:none;
    max-height:none;
    float:none;
    display:block;
    margin-right:0;
    margin-bottom:10px;
}

#content .audio-card audio {
    width:100%;
    display:block;
}



    @font-face {
      font-family: "Manrope";
      src: url("../fonts/Manrope/Manrope.ttf") format("truetype");

      font-style: normal;
    }

    @font-face {
      font-family: "Geist";
      src: url("../fonts/Geist/Geist.ttf") format("truetype");

      font-style: normal;
    }

    @font-face {
      font-family: "PatrickHand";
      src: url("../fonts/PatrickHand/PatrickHand.ttf") format("truetype");

      font-style: normal;
    }


#footer {
	position:fixed;
	right:var(--small-marg);
	bottom:var(--small-marg);
    font-size:0.7em;
   

}

#footer a {
    opacity:0.5;

    font-weight:normal;
	font-family:"Manrope";
	letter-spacing:0;
	line-height: 1;

}

#gallery_overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.98);
	opacity: 0;
	pointer-events: none;
}

#gallery_close,
.gallery_chevron,
.gallery_dot,
.gallery_link {
	border: 0;
	background: none;
	color: #000;
}

#gallery_close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 3;
	font-family: var(--headline-family);
	font-size: 1em;
	line-height: 1;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0.28;
}

#gallery_prev,
#gallery_next {
	position: absolute;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	font-size: clamp(40px, 4vw, 72px);
	line-height: 1;
	padding: 20px;
	cursor: pointer;
	opacity: 0.22;
}

#gallery_prev {
	left: var(--small-marg);
}

#gallery_next {
	right: var(--small-marg);
}

#gallery_close:hover,
#gallery_chevron:hover,
#gallery_prev:hover,
#gallery_next:hover {
	opacity: 0.9;
}

#gallery_prev:disabled,
#gallery_next:disabled {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

#gallery_track {
	width: 100vw;
	height: 100vh;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	white-space: nowrap;
	scrollbar-width: none;
}

#gallery_track::-webkit-scrollbar {
	display: none;
}

.gallery_slide {
	width: 100vw;
	height: 100vh;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0;
	scroll-snap-align: start;
	vertical-align: top;
}

.gallery_slide img {
	display: block;
	max-width: calc(100vw - 140px);
	max-height: calc(100vh - 180px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.gallery_slide figcaption {
	max-width: min(80vw, 900px);
	font-size: 0.8em;
	line-height: 1.35;
	text-align: center;
	white-space: normal;
	color: rgba(0, 0, 0, 0.88);
}

#gallery_dots {
	position: absolute;
	left: 50%;
	bottom: var(--marg);
	z-index: 3;
	display: flex;
	gap: 12px;
	transform: translateX(-50%);
}

.gallery_dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

.gallery_dot.active {
	background: rgba(0, 0, 0, 1);
}

.gallery_links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: var(--small-marg);
}

.gallery_link {
	font-family: var(--headline-family);
	font-weight: bold;
	letter-spacing: -0.03em;
	color: inherit;
}

body.gallery-open {
	overflow: hidden;
	min-width: 0;
}

body.gallery-open #header,
body.gallery-open #language_selector,
body.gallery-open #bignav,
body.gallery-open #content,
body.gallery-open #footer,
body.gallery-open #nav-gradient {
	visibility: hidden !important;
	pointer-events: none !important;
}

body.gallery-open #jan_puppet_mount {
	visibility: visible !important;
	z-index: 1001;
	pointer-events: none;
}

body.gallery-open #gallery_overlay {
	opacity: 1;
	pointer-events: auto;
}

@media (max-width: 699px) {
	#gallery_close {
		top: 18px;
		right: 18px;
	}

	#gallery_prev,
	#gallery_next {
		padding: 12px;
		font-size: 42px;
	}

	#gallery_prev {
		left: 4px;
	}

	#gallery_next {
		right: 4px;
	}

	.gallery_slide img {
		max-width: calc(100vw - 64px);
		max-height: calc(100vh - 150px);
	}

	#gallery_dots {
		bottom: 20px;
		gap: 10px;
	}
}


#header {
	position:fixed;
	left:var(--marg);
	top:var(--marg);
    cursor:pointer;
    z-index:10;
}

#language_selector {
	position: fixed;
	top: var(--marg);
	right: var(--marg);
	display: flex;
	gap: 8px;
	align-items: center;
	z-index: 10;
}

#language_selector a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0px;
}

#language_selector a svg {
	display: block;
	border-radius: 4px;
}

#language_selector a.nav_flag {
	opacity: 0.6;
}

#language_selector a.nav_flag:hover {
	opacity: 0.9;
}

#language_selector a.nav_flag_selection {
	opacity: 1;
}

#header img {
    width:1.1em;
    height:1.1em;
    vertical-align: -0.15em;
    border-radius: 30px;
    margin-right:10px;
}
h3 {
   font-size:1.2em;
}


#jan_puppet_mount {
	position:fixed;
	right:20px;
	bottom:0;
	width:min(36vw, 390px);
	height:min(36vw, 390px);
	z-index:2;
	filter:drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.22));
	transform:translateY(52%);
	opacity:0;
	pointer-events:none;
	transition:transform 0.45s ease, opacity 0.35s ease;
}

#jan_puppet_mount.is-visible {
	transform:translateY(0);
	opacity:1;
	pointer-events:auto;
}

#jan_puppet_mount.is-visible.is-clicked {
	animation:jan-puppet-click-bounce 0.18s ease-out;
}

#jan_puppet_mount .jan-puppet-svg {
	width:100%;
	height:100%;
	display:block;
	pointer-events:none;
}

#jan_puppet_mount.is-visible .jan-puppet-svg {
	pointer-events:auto;
}

@keyframes jan-puppet-click-bounce {
	0% {
		transform:translateY(0) scale(1);
	}
	35% {
		transform:translateY(0) scale(0.94);
	}
	100% {
		transform:translateY(0) scale(1);
	}
}

#jan_puppet_mount .jan-puppet-bubble {
	position:absolute;
	left:-10px;
	top:0px;
	max-width:min(26vw, 320px);
	padding:14px 18px;
	background:#fffdf7;
	border:3px solid #111;
	border-radius:22px;
	font-family:"PatrickHand";
	font-size:1.8rem;
	line-height:1.2;
	letter-spacing:0.01em;
	color:#111;
	box-shadow:0 10px 24px rgba(0, 0, 0, 0.18);
	opacity:0;
	/*
	transform:translateY(8px) scale(0.96);
	transform-origin:80% 100%;
	*/
	transition:opacity 0.18s ease, transform 0.18s ease;
	pointer-events:none;
}

#jan_puppet_mount .jan-puppet-bubble.is-visible {
	opacity:1;
	transform:translateY(0) scale(1);
}
/*
#jan_puppet_mount .jan-puppet-bubble::after {
	content:"";
	position:absolute;
	right:46px;
	bottom:-18px;
	width:24px;
	height:24px;
	background:#fffdf7;
	border-right:3px solid #111;
	border-bottom:3px solid #111;
	transform:rotate(35deg) skewX(-8deg);
}
	*/

@media (max-width: 900px) {
	#jan_puppet_mount {
		right:10px;
		width:min(52vw, 300px);
		height:min(58vh, 520px);
	}

	#jan_puppet_mount .jan-puppet-bubble {
		max-width:220px;
		left:-4px;
		top:20px;
		font-size:0.95rem;
	}
}

@media (max-width: 699px) {
	#jan_puppet_mount {
		display:none;
	}
}


html {
	scroll-behavior: smooth;
	scroll-snap-type: y proximity;
}
body {
	padding:0;
	margin:0;
	border:0;
	position:relative;

	min-width:450px;

	font-family:"Manrope";
	--headline-family:"Geist";

	--bg-center:#fff;
	--bg-edge:#ddd;
	--fg:#000;

	background-color:var(--bg-center);
	background-image:radial-gradient(circle, var(--bg-center) 40%, var(--bg-edge) 100%);
	background-attachment:fixed;

	font-size: clamp(16px, 0.6vw + 12px, 20px);
    line-height: 1.4;
	color: var(--fg);

	--marg:clamp(25px, 2.5vw, 50px);
	--small-marg:clamp(15px, 1.5vw, 25px);
	--lefter:30vw;
	--righter:15vw;
}

* {
    transition: all 0.3s ease;
}

a {
	text-decoration: none;
	color: var(--fg);
}


a, h1, h2, h3, span.year {
	
	font-weight:bold;
	clear:both;
	font-family:"Geist";
	letter-spacing:-0.04em;
	line-height: 1.2;

	margin:0;
	padding:0;
}

.phone {
	display:none !important;
}





/* TMSNavi landing page */
.tmsnavi-page {
	--bg-center: #fff9f0;
	--bg-edge: #ffc9a8;
	--fg: #1c2138;
	--accent: #f04f3d;
	--violet: #6f5ce7;
	min-width: 0;
	background: radial-gradient(circle at 85% 10%, #fffdf9 0, #fff4e7 35%, #ffc7a6 100%);
}

.tmsnavi-simple-page {
	box-sizing: border-box;
	min-height: 100svh;
	max-width: 960px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 70px);
	display: flex;
	flex-direction: column;
}

.tmsnavi-logo {
	align-self: flex-start;
	font: 800 clamp(1.45rem, 2vw, 1.8rem)/1 var(--headline-family);
	letter-spacing: -.08em;
}
.tmsnavi-logo span { color: var(--accent); }

.tmsnavi-signup {
	width: min(100%, 690px);
	margin: auto 0;
	padding: 60px 0;
}

.tmsnavi-page .eyebrow {
	margin: 0 0 1.3rem;
	color: var(--accent);
	font: 800 .78rem/1.2 var(--headline-family);
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tmsnavi-page h1 {
	margin: 0 0 1.5rem;
	font: 800 clamp(3.4rem, 8vw, 6.5rem)/.84 var(--headline-family);
	letter-spacing: -.085em;
}

.tmsnavi-signup > p:not(.eyebrow) {
	max-width: 590px;
	margin: 0 0 1rem;
	font-size: clamp(1.05rem, 1.3vw, 1.3rem);
	line-height: 1.5;
}

.tmsnavi-form { margin-top: 2.4rem; max-width: 600px; }
.tmsnavi-form > label:first-child { display: block; margin-bottom: .45rem; font-weight: 700; }
.tmsnavi-form-row { display: flex; gap: .65rem; }
.tmsnavi-form input[type="email"] {
	min-width: 0;
	flex: 1;
	box-sizing: border-box;
	padding: .85rem 1rem;
	border: 2px solid var(--fg);
	border-radius: 5px;
	background: rgba(255,255,255,.65);
	font: inherit;
	color: var(--fg);
}
.tmsnavi-form button {
	padding: .85rem 1.1rem;
	border: 2px solid var(--fg);
	border-radius: 5px;
	background: var(--fg);
	color: #fff;
	font: 700 1rem var(--headline-family);
	cursor: pointer;
}
.tmsnavi-form button:hover:not(:disabled) { background: var(--violet); border-color: var(--violet); }
.tmsnavi-form button:disabled { cursor: wait; opacity: .7; }
.tmsnavi-consent { display: block; margin-top: .9rem; font-size: .8rem; }
.tmsnavi-consent input { accent-color: var(--accent); }
.tmsnavi-consent a, .tmsnavi-instagram { text-decoration: underline; text-underline-offset: 3px; }
.tmsnavi-form-status { min-height: 1.4em; margin: .8rem 0 0; font-size: .9rem; font-weight: 700; }
.tmsnavi-form-status.error { color: #a82720; }
.tmsnavi-instagram { display: inline-block; margin-top: 1.7rem; font-weight: 700; }

.tmsnavi-page #footer { position: absolute; }
.tmsnavi-page #footer span { margin: 0 .5rem; opacity: .5; }

.tmsnavi-legal-page {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(28px, 6vw, 80px) clamp(25px, 5vw, 60px);
}
.tmsnavi-legal-page h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.tmsnavi-legal-page h2 { margin: 2rem 0 .5rem; font-size: 1.3rem; }
.tmsnavi-legal-page p, .tmsnavi-legal-page li { line-height: 1.55; }
.tmsnavi-legal-page a { text-decoration: underline; text-underline-offset: 3px; }
.tmsnavi-legal-page .legal-note { padding: 1rem; border-left: 4px solid var(--accent); background: rgba(255,255,255,.45); }



@media (max-width: 699px) {
	body {
		--lefter:0;
		--righter:0;
		min-width:0;
	}
	html {
		scroll-behavior: smooth;
		scroll-snap-type: none;
	}

	#content {
		min-width:0;
	}

	#bignav {
		display:none;
	}

	#content .entry {
		min-height:0;
		padding-right:var(--marg);
	}
	#content img {
		width:100%;
		float:none;
		margin-right:0;
	}
	#content img.smol {
		margin-right:var(--marg);
	}
	#nav-gradient {
		display:none;
	}

	#header, #footer {
		position:relative
	}
	#header {
		width:250px;
	}
	#header h3 {
		display:inline;
	}
	#language_selector {
		position: absolute;
		top: var(--marg);
		right: var(--marg);
	}
	#footer {
		width:100%;
		text-align:center;
	}

	#content h1 {
		font-size:2em;
	}
	#content h2 {
		font-size:1.3em;
	}

	.desktop {
		display:none !important;
	}

	.phone {
		display:block !important;
	}

	a.phone, span.phone {
		display:inline !important;
	}

	img.phone {
		display:inline-block !important;
	}

	.tmsnavi-simple-page { padding: 28px 25px 80px; }
	.tmsnavi-signup { padding: 55px 0; }
	.tmsnavi-page h1 { font-size: clamp(3.2rem, 15vw, 4.8rem); }
	.tmsnavi-form-row { flex-direction: column; }
	.tmsnavi-form button { width: 100%; }
	.tmsnavi-page #footer { position: relative; right: auto; bottom: auto; padding: 0 25px 25px; text-align: left; }
}


