/*
-----------------------------------------------
	www.stefanstichler.com
by  www.lichtsignale.de
----------------------------------------------- */


/*		R E S E T
----------------------------------------------- */

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
	font-variant-ligatures: none;
	font-variant-numeric: lining-nums;
	-moz-font-feature-settings: "lnum";
	-webkit-font-feature-settings: "lnum";
	font-feature-settings: "lnum";
}

html {
	height: 100%;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}

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

blockquote, q {
	quotes: none;
}

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

a {
	margin: 0;
	padding: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
	outline: none;
}

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

input, select {
	vertical-align: middle;
}


/*		W E B F O N T S
----------------------------------------------- */

@font-face {
	font-family: "New Rail St";
	src: url("fonts/NewRailAlphabet-Light.woff2") format("woff2"),
		url("fonts/NewRailAlphabet-Light.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "New Rail St";
	src: url("fonts/NewRailAlphabet-BoldWEB.woff2") format("woff2"),
		url("fonts/NewRailAlphabet-BoldWEB.woff") format("woff");
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}

/* New Rail führt das geschützte Leerzeichen (U+00A0) mit Breite 0.
   leerzeichen.woff2 enthält nur dieses eine Zeichen, so breit wie ein
   normales Leerzeichen; die Schriftdatei selbst bleibt unverändert.
   Safari misst jedes Leerzeichen am U+0020 der Schrift – fehlt es, nimmt
   es das Ersatzzeichen (500 statt 210 breit). Darum steht U+0020 mit
   derselben Breite mit drin (31.10.2026); geholt wird die Datei weiter nur
   für U+00A0.
   Später definiert = wird für U+00A0 zuerst gefragt. */
@font-face {
	font-family: "New Rail St";
	src: url("fonts/leerzeichen.woff2?3") format("woff2");
	unicode-range: U+00A0;
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "New Rail St";
	src: url("fonts/leerzeichen.woff2?3") format("woff2");
	unicode-range: U+00A0;
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}


/*		B A S I C S
----------------------------------------------- */



body {
	color: #000;
	background: #fff;
	font-family: "New Rail St", Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.25;
	letter-spacing: 0.035em;
}

a:link, a:visited {
	color: #000;
	text-decoration: none;
}

a:hover, a:active {
	color: #ccc;
}

/* Fokus nur für Tastatur sichtbar, nicht beim Klick */
:focus {
	outline: none;
}

:focus-visible {
	outline: 1px solid #000;
	outline-offset: 4px;
}

img, video {
	max-width: 100%;
	height: auto;
}


/*		H E A D E R
----------------------------------------------- */

header {
	font-weight: bold;
	text-align: center;
	margin: 19px 22px 0 22px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

nav {
	margin: 11px 0 0 0;
}

nav li {
	list-style: none;
	display: inline-block;
	margin-right: 3px;
	margin-left: 3px;
}

/* größere Berührungsflächen im Menü (mind. 24 px hoch, mehr Abstand) */
nav a {
	display: inline-block;
	padding: 3px 0;
}

@media (pointer: coarse) {
	nav li {
		margin-right: 6px;
		margin-left: 6px;
	}
}

/* Strich als Hintergrund: sitzt wie früher direkt unter der Zeile,
   das Polster der Berührungsfläche schiebt ihn nicht nach unten */
.active a {
	background: linear-gradient(#000, #000) no-repeat 0 calc(100% - 3px) / 100% 1px;
}

nav .active a:hover {
	background-image: linear-gradient(#ccc, #ccc);
}

nav .sprache {
	margin-left: 18px;
}

/* Lange Adressen und Links brechen um statt die Seite zu verbreitern */
#info main {
	overflow-wrap: break-word;
}

/* Links direkt untereinander (Kontakt): 24 px Zeilenabstand,
   damit sie sich auch mit dem Finger sicher treffen lassen */
.untereinander {
	line-height: 24px;
}

/* Nur für Screenreader (Seitenüberschrift, die optisch schon da ist) */
.unsichtbar {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Rechtstext: Gliederung wie bisher; Links und Text ohne Auszeichnung (Simon, 31.10.2026) */
.rechtstext h1, .rechtstext h2, .rechtstext h3, .rechtstext h4 {
	font-weight: normal;
	margin: 0 0 1lh 0;
}

.rechtstext h2 {
	margin-top: 2lh;
}

.rechtstext p, .rechtstext ul {
	margin-bottom: 1lh;
}

.rechtstext ul {
	list-style: none;
}

.rechtstext li::before {
	content: "– ";
}

/* Biografie: h2 + Liste, Abstände wie die früheren Leerzeilen (lh = Zeilenhöhe) */
#info main h2 {
	font-weight: normal;
	margin: 3lh 0 1lh 0;
}

#info main ul + h2 {
	margin-top: 4lh;
}

.lebenslauf {
	list-style: none;
}

.lebenslauf .jahr:not(:first-child) {
	margin-top: 1lh;
}

/* Flattersatz setzt die Trennstellen selbst (weiche Trennstriche) */
#info main p, .lebenslauf {
	-webkit-hyphens: manual;
	hyphens: manual;
}

#extra {
	text-align: center;
	font-size: 300%;
	font-weight: normal;
	letter-spacing: -0.02em;
	line-height: 1;
	margin-top: 22px;
}

/* inaktive Bereiche: #949494 = 3,03:1 auf Weiß (große Schrift, BITV 9.1.4.3) */
#extra a:link, #extra a:visited {
	color: #949494;
}

#extra a:hover, #extra a:active {
	color: #000;
}

#extra .active {
	color: #000 !important;
}


/*		B A S I C S
----------------------------------------------- */

main {
	margin: 88px 15px 0 15px;
	padding-bottom: 30px;
}

#home main {
	text-align: center;
	font-size: 300%;
	letter-spacing: -0.02em;
	line-height: 1.75;
	margin-top: 44px;
}

#home main a {
	display: block;
}

#workgrid {
	display: grid;
	row-gap: 27px;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	column-gap: 30px;
	grid-gap: 27px;
	justify-items: center;
	align-items: center;
	margin: 30px 30px 0 30px;
}

#workgrid a {
	display: block;
}

/* Videos: Breite der Spalte, Höhe aus dem Seitenverhältnis (vorher resizevideo.js) */
#info main iframe, #info main video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* Lightbox (media/lightbox.js): hell und deckend */
.lightbox-offen, .lightbox-offen body {
	overflow: hidden;
}

.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: #fff;
	color: #000;
	align-items: center;
	justify-content: center;
}

.lightbox.ist-offen {
	display: flex;
}

/* Ziehen übernimmt das Skript, Zwei-Finger-Zoom bleibt dem Browser */
.lightbox {
	touch-action: pinch-zoom;
	user-select: none;
	-webkit-user-select: none;
}

.lightbox:focus {
	outline: none;
}

/* Bild füllt den Raum zwischen Kopf und Bildunterschrift; die Unterschrift
   steht fest am unteren Rand, unabhängig von der Bildgröße */
.lightbox-buehne {
	position: absolute;
	top: 64px;
	right: 15px;
	bottom: 110px;
	left: 15px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-buehne img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	cursor: pointer;
	transition: opacity 0.2s;
}

.lightbox-buehne img.laedt {
	opacity: 0.6;
}

/* Bildunterschrift in der normalen Textgröße der Seite, wie früher bei fancyBox */
.lightbox figcaption {
	position: fixed;
	right: 15px;
	bottom: 24px;
	left: 15px;
	text-align: center;
}

.lightbox figcaption:empty {
	display: none;
}

.lightbox figcaption strong, .lightbox figcaption em {
	font-weight: normal;
	font-style: normal;
	display: block;
}

/* Knöpfe: feine gezeichnete Linien statt Schriftzeichen */
.lightbox button {
	position: absolute;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #000;
	cursor: pointer;
}

.lightbox button:hover {
	color: #949494;
}

.lightbox-zu {
	top: 8px;
	right: 10px;
}

.lightbox-zu::before, .lightbox-zu::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 1.5px;
	margin: -0.75px 0 0 -13px;
	background: currentColor;
	transform: rotate(45deg);
}

.lightbox-zu::after {
	transform: rotate(-45deg);
}

.lightbox-vor, .lightbox-nach {
	top: 50%;
	height: 96px;
	margin-top: -48px;
	display: none;
}

.lightbox-vor::before, .lightbox-nach::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	border-left: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
}

.lightbox-vor {
	left: 10px;
}

.lightbox-vor::before {
	transform: translateX(4px) rotate(45deg);
}

.lightbox-nach {
	right: 10px;
}

.lightbox-nach::before {
	transform: translateX(-4px) rotate(-135deg);
}

/* Zähler in Textgröße, auf Höhe des Seitenkopfs */
.lightbox-zaehler {
	position: absolute;
	top: 19px;
	left: 22px;
}

@media (prefers-reduced-motion: reduce) {
	.lightbox-buehne img {
		transition: none;
	}
}

#columns main figure a {
	display: none;
}

#columns main figure a:first-child {
	display: block;
}

#columns p {
	margin-bottom: 20px;
}

#columns .text a {
	border-bottom: 1px solid #000;
}

#columns .text a:hover {
	border-bottom-color: #ccc;
}


/*		R E S P O N S I V E
----------------------------------------------- */

@media screen and (min-width: 550px) {

main {
	margin-left: 30px;
	margin-right: 30px;
}

#columns main > div {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 22px;
	grid-gap: 22px;
	align-items: start;
	margin-bottom: 66px;
}

}


@media screen and (min-width: 680px) {

#columns main, #info main {
	margin-left: auto;
	margin-right: auto;
	width: 620px;
}

#workgrid {
	row-gap: 57px;
	column-gap: 60px;
	grid-gap: 57px;
	margin: 60px 60px 0 60px;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

}


@media screen and (min-width: 860px) {

.lightbox-vor, .lightbox-nach {
	display: block;
}

.lightbox-vor[hidden], .lightbox-nach[hidden] {
	display: none;
}

.lightbox-buehne {
	right: 80px;
	left: 80px;
}

header {
	position: relative;
	z-index: 10;
}

header .name {
	float: left;
	width: 150px;
	text-align: left;
}

header nav {
	padding-right: 150px;
}

nav .sprache {
	position: absolute;
	top: 0;
	right: 0;
	width: 150px;
	text-align: right;
	margin: 0;
	padding: 0;
	border: 0;
}

#extra {
	width: 100vw;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	margin-top: 66px;
	margin-bottom: 66px;
}

#home main {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}

#home main a {
	padding-top: 45vh;
	height: 55vh;
	background-size: cover;
	background-position: 0 100vh;
}

#home main a:hover {
	color: #fff;
	background-position: center center;
}

#amalerei {
	background: transparent url("start-malerei-2026.jpg") center center no-repeat;
}

#askulptur {
	background: transparent url("start-skulptur-2026.jpg") center center no-repeat;
}

#agrafik {
	background: transparent url("start-grafik-2026.jpg") center center no-repeat;
}

}


@media screen and (min-width: 900px) {

#extra, #home main {
	font-size: 400%;
	letter-spacing: -0.03em;
}

#workgrid {
	grid-template-columns: 1fr 1fr 1fr;
}

}


@media screen and (min-width: 1100px) {

body {
	font-size: 1.25rem;
	line-height: 1.3;
	letter-spacing: 0.025em;
}

header {
	margin: 22px 26px 0 26px;
}

.lightbox-zaehler {
	top: 22px;
	left: 26px;
}

.lightbox-zu {
	top: 10px;
	right: 14px;
}

nav {
	margin: 11px 0 0 0;
}

nav li {
	margin: 0 5px;
	margin: 0 5.75px;
}

main {
	margin-top: 100px;
}

#workgrid {
	row-gap: 87px;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	column-gap: 90px;
	grid-gap: 87px;
	margin: 60px 90px 0 90px;
}

#columns main > div {
	column-gap: 30px;
	grid-gap: 30px;
	margin-bottom: 80px;
}

#columns p {
	margin-bottom: 26px;
}

}


@media screen and (min-width: 1400px) {

#extra, #home main {
	font-size: 500%;
}

#home main a {
	padding-top: 44vh;
	height: 56vh;
}

}


@media screen and (min-width: 1600px) {

#extra, #home main {
	font-size: 600%;
	letter-spacing: -0.035em;
}

#home main a {
	padding-top: 43vh;
	height: 57vh;
}

#workgrid {
	grid-template-columns: 1fr 1fr 1fr 1fr;
}

}


@media screen and (min-width: 1800px) {

#extra, #home main {
	font-size: 700%;
	/* wächst mit der Fensterbreite, aber auch mit der Schriftgröße des Browsers */
	font-size: max(6vw, 5.4rem);
}

#home main a {
	padding-top: 42vh;
	height: 58vh;
}

#workgrid {
	width: 1620px;
	margin-left: auto;
	margin-right: auto;
	row-gap: 117px;
	column-gap: 120px;
	grid-gap: 117px;
}

}