/* =====================================================
   LAYOUT.CSS
   -----------------------------------------------------
   Enthält:
   - Seitenstruktur
   - Container
   - Navigation / Footer
   - Grid / Flex Layouts
   -----------------------------------------------------
   Hier wird KEIN visuelles Design von Komponenten definiert.
   Nur Struktur & Positionierung.
===================================================== */

/* =====================================================
   0. Base
   Definiert die nutzbare Fläche des Bildschirms
===================================================== */

html, body {
	height: 100%;
	width: 100%;
}

main {
	max-width: var(--maxwidth-page);
	display: flex;
	flex-direction: column;
	/* justify-content: center; (kurze Seiten werden vertikal zentriert = unschön*/
	min-height: calc(100vh - var(--footerheight)); /* mindestens volle Bildschirmhöhe */
	margin: 0 auto;
}

/* =====================================================
   1. CONTAINER
   Zentriert Inhalte und begrenzt Breite
===================================================== */

/* wird nirgends gebraucht
.container {
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
}
 */

/* =====================================================
   2. HEADER
===================================================== */

.header {
  padding: var(--spacing-md) 0;
  background: var(--color-surface);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
	position: fixed;
	top: 16px;
	left: 10px;
	width: 200px;
	z-index: 150;
}

nav {
	top: 0;
	position: absolute;
	z-index: 50;
	width: 100%;
}



/* =====================================================
   1. Clean Start und TITELBILD
   2. headimage
===================================================== */

clean_start, headimage {
	display: flex;
	flex-direction: column;
	height: var(--cleanstartheight);
    width: 100%;
}

.titelbild {
	width: 100%;
	height: 100%;
	background-image: url("../images/L8A2809_headshot.jpg");
	background-size: cover;        /* Bild füllt den Container */
	background-position: center;   /* immer zentriert */
	position: relative; /* Für das absolute Positionieren des Textes */
}

.titelbild-text {
  position: absolute; /* Absolute Positionierung */
  bottom: 5%; /* Unten bündig */
  left: 5%;
  /*transform: translateX(-50%); /* Zentriert Text-Box horizontal*/
  color: white; /* Textfarbe */
  /*text-align: center; /* Zentriert Text in Box */
}

.titelbild-text {
    opacity: 0;
    transform: translateY(100px);
    transition: 
    opacity 1.5s cubic-bezier(.2,.8,.2,1),
    transform 1.5s cubic-bezier(.2,.8,.2,1);
    transition-delay: 1s;
}
.titelbild-text.active{
    opacity: 1;
    transform: translateY(0);
}

.titelbild h1 {
	font-family: "Noto Serif JP", serif;
	font-optical-sizing: auto;
	font-weight: 800;
	font-style: normal;

	font-size: calc(1.0em + 1.2vw);
	color: var(--color-overlay);
	padding:0;
	margin:0;
	text-transform: none;
	letter-spacing: normal;
}
.titelbild h2 {
	font-weight: 300;
	font-size: calc(0.8em + 0.5vw);
	color: var(--color-overlay);
	padding:0;
	margin:0;

}

headimage img {
	width: 100%;
	height: 100%;
}


/* =====================================================
   3. MAIN CONTENT
===================================================== */


/* geht über die gesamte Bildschirmbreite */
section {
	padding-bottom: var(--sectionpadding);
	width: 100%;
}
section:first-of-type {
	padding-top: var(--navheight);
}
 
/* ist ein schmaler definierter Bereich für den normalen Webcontent */
.content {
	max-width: var(--maxwidth-content);
	margin: 1.5rem auto;
	width: 90%;
}
.content0 {
	/* geht bis ganz aussen, z.B. für Fotogalerien */
	max-width: var(--maxwidth-content);
	margin: 1rem auto;
	width: 100%;
}

/* TODO: ausprobieren, kann ev auch mit boxes gemacht werden? */
.column {
	display: flex;
	gap: var(--columngap);
}


@media (max-width: 600px) {
	.column {
		flex-direction: column;
		gap: 0;
	}
}


/* =====================================================
   4. FOOTER
===================================================== */

footer {
    width: 100%;
	height: var(--footerheight);
	bottom: 0;
    color: var(--color-surface);
    background: var(--color-secondary);
	font-size: 0.9rem;
	font-weight: 600;
	
	display: flex;
	align-items: center;     /* vertikal */
	justify-content: center; /* horizontal */
}
footer div {
	text-align: center;
}
footer a {
	text-decoration: none;
    color: var(--color-surface);
}
footer ul {
	padding-top: 0;
	padding-bottom: 0.1rem;
}
footer li {
	display: inline;
	padding: 0;
}
footer li:not(:last-child) {
	padding-right: 0.8rem;
}
.copyright {
	font-weight: 400;
	font-size: 0.8rem;
}