@charset 'UTF-8';
@font-face { font-family: 'Euclid'; font-weight: 400; font-style: normal; src: url('./fonts/EuclidCircularB-Light-WebXL.woff2') format('woff2'), url('./fonts/EuclidCircularB-Light-WebXL.woff') format('woff'); } 
@font-face { font-family: 'Euclid'; font-weight: 700; font-style: normal; src: url('./fonts/EuclidCircularB-Medium-WebXL.woff2') format('woff2'), url('./fonts/EuclidCircularB-Medium-WebXL.woff') format('woff'); }

/**
 * © 2021 Higi Bigler (nullnulleins.ch). All rights reserved.
 */
:root {
	--parents-bg: #98cac3;
	--parents-bg-2: #98cac3;
	--midwives-bg: #00688d;
	--midwives-bg-2: #82adc0;
	--bg-color: #f4ede6;
	--text-color: #002c3c;
	--swiper-navigation-color: var(--bg-color);
}

* { margin: 0; padding: 0; }
html, body { height: 100%; }
/*          italic small-caps bold */
body { font: normal normal normal 1.125em/1.4444 'Euclid', sans-serif; letter-spacing: .05em; margin: 0; padding: 0; -webkit-text-size-adjust: none; overflow-y: scroll; background-color: var(--bg-color); color: var(--text-color); }

/* structure */
#container { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
header { position: fixed; top: 0; left: 0; right: 0; z-index: 2; padding: 0 6em; }
header #logo { position: absolute; left: 1.5em; top: .55em; }
header #logo a { background-image: url('./../img/egg.0.svg'); display: block; height: 2.1em; width: 2.1em; }
header nav { flex-grow: 1; }
header nav ul { list-style: none; display: flex; justify-content: space-between; margin: 0; }
header nav ul ul { display: none; position: absolute; background-color: var(--bg-color); padding: .7em 0; }
header nav ul li:hover ul { display: block; }
header .footer { display: none; } 
header .footer .homes { font-weight: 700; font-size: 90%; padding-bottom: 2em; }

main { padding: 7.7em 6em 0; flex-grow: 1; }
section.fixedwidth article { background-color: var(--bg-color); margin: 0 0 4.9em; padding: 1em 1.1em .8em; position: relative; }

footer { text-align: center; padding: 0 1em 1.5em; }
footer div p { display: inline; margin: 0; }
footer br { display: none; }
a.egg { background-image: url('../img/egg.0.svg'); background-repeat: no-repeat; padding-left: 1.5em; background-size: auto 85%; background-position: left 80%; }
header a.egg { padding: 0 1.5em 0 0; background-position: right 80%; }

nav { font-weight: 700; text-transform: uppercase; white-space: nowrap; }
nav a { text-decoration: none; padding: .925em 1.1em; display: inline-block; letter-spacing: .08em; }
nav ul ul a { padding: 0 1em; margin: 1px 0 0; }
header nav a:hover, header nav li.parent:hover > a, header nav a.active, header nav a.activesparent { background-color: var(--text-color); color: var(--bg-color); }

nav.empty ul { visibility: hidden; }

/**/
#smartbutton { display: none; position: fixed; background-color: var(--text-color); border-radius: 50%; width: 3em; height: 3em; left: calc(50% - 1.5em); z-index: 5; top: 1em; overflow: hidden; }
#smartbutton a { display: block; width: 100%; height: 100%; position: relative; }
#smartbutton a:before, #smartbutton a:after, #smartbutton a span { content: ''; display: block; width: 60%; height: 2px; background-color: var(--bg-color); position: absolute; left: 20%; transition: .25s top .25s ease-out, .25s bottom .25s ease-out, transform .25s ease-in, .5s opacity .05s linear; }
#smartbutton a:before { top: .85em; }
#smartbutton a:after { bottom: .85em; }
#smartbutton a span { top: calc(50% - 1px); }

body.smartnavigation #smartbutton a:before, body.smartnavigation #smartbutton a:after, body.smartnavigation #smartbutton a span { transition: top .25s ease-in, bottom .25s ease-in, .25s transform .25s ease-out, .25s opacity .05s linear; }
body.smartnavigation #smartbutton a:before { top: calc(50% - 1px); transform: rotate(-45deg); }
body.smartnavigation #smartbutton a:after { bottom: calc(50% - 1px); transform: rotate(45deg); }
body.smartnavigation #smartbutton a span { opacity: 0; }

/* trivia */
body.trivia section.fixedwidth article { background-color: transparent; padding: 0 6em; box-sizing: border-box; }
body.trivia section.fixedwidth article div.contentwrapper { background-color: var(--bg-color); margin: 0; padding: 1em 1.1em .8em; max-width: 1180px; margin-left: auto; margin-right: auto; box-sizing: border-box; min-height: 60vh; position: relative; }
body.trivia section.fixedwidth { max-width: unset; }
body.trivia main { padding-left: 0; padding-right: 0; }
body.trivia .swiper-button-next, body.trivia .swiper-button-prev { position: fixed; margin-top: 0; transform: translateY(-50%); width: 2.5em; height: 4em; outline: 0; }
body.trivia .swiper-button-prev { left: 1.5em; }
body.trivia .swiper-button-next { right: 1.5em; }
body.trivia .swiper-button-prev:after, body.trivia .swiper-button-next:after { font-family: inherit; font-size: 7.5em; margin-top: -.15em; }
body.trivia .swiper-button-prev:after { content: '<'; }
body.trivia .swiper-button-next:after { content: '>'; }

a { color: inherit; text-decoration: underline; }
a:hover { text-decoration: none; }
a img { border: none; }

.fixedwidth { max-width: 1180px; margin: 0 auto; }

/* home */
body.start header { padding: 0; }
body.start #logo { width: 19%; height: 0; margin: 1.65% 0 0 1.65%; position: static; min-width: 9em; max-width: 304px; }
body.start #logo > div { background-image: url('./../img/logo-ch.png'); padding-bottom: 26.92939244663383%; background-position: center; background-size: contain; }
body.start nav { flex-grow: 1; display: flex; }
body.start nav ul { flex-grow: 1; display: flex; list-style: none; margin: 0; }
body.start nav li { display: flex; flex-grow: 1; width: 50%; position: relative; }
body.start nav li figure { overflow: hidden; position: relative; position: absolute; width: 94%; height: calc(94% - 3em); left: 3%; right: 3%; top: 3%; bottom: calc(3% + 3em); z-index: 0; }
body.start nav li img { position: absolute; width: 100%; height: 100%; object-fit: contain; left: 0; right: 0; top: 0; bottom: 0; transition: transform .5s; }
body.start nav li img:last-child { display: none; }
body.start nav a { display: block; flex-grow: 1; display: flex; justify-content: flex-end; flex-direction: column; text-align: center; padding: 0 0 7.5%; }
body.start nav a:hover { color: var(--bg-color); }
body.start nav a:hover img { transform: scale(1.01); }
body.start nav a span { font-size: 177.7777777777778%; font-weight: bold; letter-spacing: .065em; position: relative; z-index: 1; }

/* audiences */
body.navigation { background-color: #036656; } /* impressum and other pages not in an audience */
body.start nav li.audience-78, body.audience-78.password { background-color: var(--midwives-bg); }
body.audience-78 { background-color: var(--midwives-bg-2); }
body.start nav li.audience-79, body.audience-79.password { background-color: var(--parents-bg); }
body.audience-79 { background-color: var(--parents-bg-2); }
body:not(.start) header { background-color: var(--bg-color); }

/**/
article.news h2 span.date { display: none; }

/**/
section.teasers div.teaserwrapper { display: flex; flex-wrap: wrap; margin: 0 -.5em; justify-content: center; }
section.fixedwidth article.teaser { width: 33.3333%; padding: 0 .5em; background-color: transparent; box-sizing: border-box; }
section.fixedwidth article.teaser > a { display: block; background-color: var(--bg-color); text-decoration: none; }
section.fixedwidth article.teaser.gloryawwwcontrolwrapper > h2 { background-color: var(--bg-color); padding: 1em; }
article.teaser figure { height: 0; padding: 0 0 92.33333333333333%; background-size: contain; background-position: center; background-repeat: no-repeat; position: relative; overflow: hidden; }
article.teaser figure img { position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; display: none; transition: transform .5s; }
article.teaser figure img:first-child { display: block; }
article.teaser div.text { padding: 1em; text-align: center; }
article.teaser:nth-child(3n - 2) { margin-top: 5.5vh; }
article.teaser:nth-child(3n - 1) { margin-top: 12vh; }
section.fixedwidth article.teaser > a:hover img { transform: scale(1.025); }

/* */
div.content figure.illu { width: 100%; max-width: 700px; margin: 0 auto; }
div.content figure.illu div.illuwrapper { height: 0; position: relative; }
div.content figure.illu img { width: 100%; position: absolute; top: 0; bottom: 0; left: 0; right: 0; }

/* anchors */
a.anchor { display: block; width: 10px; height: 0; /*background-color: red;*/ position: absolute; top: -7.7em; z-index: 20; }

/* gvideoembed */
span.gvideoembed { display: block; background-size: cover; background-position: center; position: relative; max-width: 100% !important; padding-bottom: 56.25%; height: 0 !important; overflow: hidden; transition: all .25s; cursor: pointer; background-color: #002c3c; }
span.gvideoembed:hover { opacity: .9; }
span.gvideoembed a.gvideoembed { display: none; }
span.gvideoembed:before { opacity: .5; content: ''; display: block; border-radius: 5px; width: 44px; height: 44px; background-color: var(--bg-color); position: absolute; left: 50%; top: 50%; margin: -22px 0 0 -22px; padding: 0; transition: all .25s; }
span.gvideoembed:after { opacity: .9; content: ''; position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -9px; width:0; height:0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 22px solid #002c3c; transition: all .25s; }
span.gvideoembed:hover:before, span.gvideoembed:hover:after { opacity: .85; }
span.gvideoembed.loaded, span.gvideoembed.loaded:hover { opacity: 1; cursor: wait; }
span.gvideoembed.loaded:after, span.gvideoembed.loaded:before { display: none; }
.gvideoembed iframe, .gvideoembed object, .gvideoembed embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #002c3c; }

/**/
h1, h2 { text-transform: uppercase; font-size: 177.7777777777778%; font-weight: bold; letter-spacing: .065em; margin: .175em 0 .8em; line-height: 1.06; }
article.teaser h2 { font-size: 100%; margin: .15em 0; }
h3 { font-size: 100%; font-weight: bold; margin: 1.4em 0 0; }
h3 + p, h3 + ul { margin-top: 0; }
p, ul, ol { margin: 1em 0; }
p + ul:not(.generous) { margin-top: -1em; }
main ul, #ckeditorarea ul { list-style: none; }
main ul li, #ckeditorarea ul li { position: relative; padding-left: 1.3em; }
main ul li:before, #ckeditorarea ul li:before { content: '•'; position: absolute; left: 0; }
ul.generous li { margin-top: 1em; }
article.teaser p { margin: 0; }

ul.subnavigation { font-weight: 700; }

/* staff */
div.staff { position: relative; margin: 1em 0; display: flex; }
div.staff div.portrait { margin: 0 1em .35em 0; flex-shrink: 0; flex-grow: 0; width: 12.05em; max-width: calc(33.333% - 1em); }
div.staff div.portrait figure { height: 0; padding: 0 0 143.778801843318%; }
div.staff div.portrait img { width: 100%; }
div.staff div.portrait + div.text { display: flex; justify-content: flex-end; flex-direction: column; }
div.staff p { margin: 0; }

/**/
body.password main { display: flex; flex-direction: column; }
.pagepasswordform { width: 100%; max-width: 1180px; margin: auto; text-align: center; height: 100%; }
.pagepasswordform input, .pagepasswordform button { border: none; font-family: inherit; font-size: inherit; font-weight: 700; -webkit-appearance: none; -webkit-border-radius: 0; border-radius: 0; outline: 0; }
.pagepasswordform input { width: 100%; padding: .5em 1em; text-align: center; font-size: 177.7777777777778%; background-color: #f6f0ea; box-sizing: border-box; }
.pagepasswordform button { margin: 2em auto; display: block; background-color: var(--text-color); color: var(--bg-color); text-transform: lowercase; padding: 1em 3em; }
.pagepasswordform input::placeholder { color: var(--text-color); opacity: 1; text-transform: uppercase; font-weight: 700; letter-spacing: .065em; }
.pagepasswordform input:-ms-input-placeholder { color: var(--text-color); text-transform: uppercase; font-weight: 700; letter-spacing: .065em; }
.pagepasswordform input::-ms-input-placeholder { color: var(--text-color); text-transform: uppercase; font-weight: 700; letter-spacing: .065em; }

/**/
ul.socials { display: inline; margin: 0; font-size: 125%; vertical-align: text-bottom; line-height: 1; }
ul.socials li { display: inline; list-style: none; margin: 0 0 0 .125em; white-space: nowrap; }
header > ul.socials { position: absolute; top: .8em; right: 1em; }
ul.socials .mdi-instagram { font-size: 95%; }
ul.socials .mdi-information-outline { font-size: 102.5%; }
ul.socials a.egg { padding: 0 0 0 .85em; background-size: contain; background-position: left center; margin: 0 .125em; }


/* image2 */
main img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; padding: 0; }
figure.gimagecaptioned { margin-bottom: 2em; }
figure.gimagecaptioned figcaption { font-size: 90%; margin-top: .5em; max-width: 100%; }
.gimagecenter { text-align: center; }
.gimagecenter figcaption, .gimagecenter img { margin-left: auto; margin-right: auto; text-align: left; }
.gimageleft { float: left; margin: .2em 1em 1em 0; max-width: 50%; }
.gimageright { float: right; margin: .2em 0 1em 1em; max-width: 50%; }
img.gimageleft, img.gimageright, .gimageleft img, .gimageright img { height: auto; }
.gimageleft img, .gimageright img { width: 100%; }

/**/
.clearfix:before, .clearfix:after { content: ' '; display: table; }
.clearfix:after { clear: both; }
.noselect { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
span.nowrap { white-space: nowrap; }
span.hyphenate { -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; }
sup, sub { vertical-align: text-top; font-size: 75%; }
sub { vertical-align: text-bottom; }

/* content to be read by screen-reader but not visible */
.invisible { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* mdi */
span.mdi { }
span.mdi.mdi-size-xs { font-size: 50%; }
span.mdi.mdi-size-s { font-size: 75%; }
span.mdi.mdi-size-l { font-size: 150%; }
span.mdi.mdi-size-xl { font-size: 200%; }
span.mdi > span { display: none; }

/* portrait */
@media screen and (orientation: portrait) {
	body.start nav ul { flex-direction: column; }
	body.start nav ul li { width: 100%; }
	body.start nav li figure { height: calc(92% - 1.5em); bottom: calc(5% + 1.5em); top: 3%; }
	body.start nav a { padding: 0 0 2.5%; }
	body.start nav li img:first-child { display: none; }
	body.start nav li img:last-child { display: block; }
}

/* twocolumns */
@media only screen and (min-width: 630px) {
	.twocolumns { display: flex; width: 100%; flex-direction: row; }
	.twocolumns:not(:first-child) { margin-top: -1.25em; }
	.twocolumns:not(:last-child) { margin-bottom: -1.25em; }
	.twocolumns > div { flex-grow: 1; width: 50%; }
	.twocolumns > div.twocolumns-left { padding-right: .675em; }
	.twocolumns > div.twocolumns-right { padding-left: .675em; }
}

@media only screen and (max-width: 1140px) {
	body { font-size: 1em; }
}

@media only screen and (min-width: 991px) {
	ul.socials li.egg { display: none; }
	header .socials li.information-outline { display: none; }
}

/* smartnavigation */
@media only screen and (max-width: 990px) {
	:root {
		--swiper-navigation-color: var(--text-color);
	}
	body:not(.start) #smartbutton { display: block; }
	body:not(.start) header { 	position: fixed; top: 0; bottom: 0; left: 0; right: 0; text-align: center; overflow: auto; z-index: 4; transform: translateY(-100%); transition: transform .5s; }
	body.smartnavigation:not(.start) header { transform: translateY(0); transition: transform .5s; }
	body:not(.start) #logo { display: none; }

	header nav { padding: 4.25em 0 1em; display: flex; justify-content: center; flex-grow: 1; flex-direction: column; white-space: normal; }
	header > .socials { display: none; }
	header nav ul, header nav ul ul { display: block; width: 100%; position: static; }
	header nav ul ul { text-transform: none; margin: 0; padding: 0; }
	header nav > ul > li > a { padding: 0; display: block; margin: 1em 0 0; font-size: 120%; }
	header nav ul ul a { padding: 0 .35em; }
	header .footer { display: flex; flex-direction: column-reverse; padding-bottom: 1em; }
	header .navwrapper { min-height: 100%; display: flex; flex-direction: column; }
	header .navwrapper > * { width: 100%; box-sizing: border-box; }
	
	main { padding-top: 5.25em; }
	a.anchor { top: -5.25em; }
	
	body.smartnavigation header { display: block; }
	
	body.start header, body.start #logo { display: block; }
	header, main, body.trivia section.fixedwidth article { padding-left: 1em; padding-right: 1em; }

	body.trivia .swiper-buttons { position: sticky; top: .35em; z-index: 2; }
	body.trivia .swiper-button-next, body.trivia .swiper-button-prev { position: absolute; margin-top: 0; transform: none; width: 2em; height: 4em; top: 0; }
	body.trivia .swiper-button-prev { left: auto !important; right: 3.5em; }
	body.trivia .swiper-button-next { right: 1.5em; }
	body.trivia .swiper-button-prev:after, body.trivia .swiper-button-next:after { font-size: 225%; margin-top: .025em; }
	body.trivia h2 { margin-right: 3em; }
	/*h2 { word-break: break-all; hyphens: auto; -ms-hyphens: auto; -moz-hyphens: auto; }*/
	
	footer br { display: inline-block; }
	footer p { display: block; }
	footer span.separator, .footer span.separator { display: none; }
	footer ul.socials { display: block; margin-top: 1em; }
	ul.socials li { margin: 0 .5em; font-size: 150%; }
	footer div.homes { display: none; }
}

/* two columns */
@media only screen and (max-width: 800px) {
	section.fixedwidth article.teaser { width: 50%; }
	/* teasers maybe only on a screen smaller than something? */
	article.teaser figure { padding: 0 0 60.83333333333333%; }
	article.teaser figure img:first-child { display: none; }
	article.teaser figure img:last-child { display: block; }
	article.teaser:nth-child(2n - 1) { margin-top: 0; }
	article.teaser:nth-child(3n - 1) { margin-top: 8vh; }
}

/* single column */
@media only screen and (max-width: 580px) {
	header nav { padding-left: 1em; padding-right: 1em; }
	h1, h2 { font-size: 165%; }
	section.fixedwidth article.teaser { width: 100%; }
	section.fixedwidth article.teaser { margin-top: 0 !important; margin-bottom: 1em; }
	section.teasers div.teaserwrapper { margin-bottom: 3.9em; }
	header, main, body.trivia section.fixedwidth article { padding-left: 0; padding-right: 0; }
	body.home main { padding-left: 1em; padding-right: 1em; }
	
	body.trivia .swiper-button-prev { right: 2.75em; }
	body.trivia .swiper-button-next { right: .75em; }
	
	div.staff { display: block; }
	div.staff div.portrait { margin: 0 1em .35em 0; width: 12.05em; max-width: 50%; }
}
