/* -----------------Reset -----------------*/
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin: 0;
    padding: 0;
}

/* --- Mobile Text Rendering Fix (iOS Safari) ---*/
html {
    -webkit-text-size-adjust: 100%;
}

blockquote {
    margin: 1.5em;
}

/*-------------------- Body --------------------*/
body {
    text-align: left;
    font: italic 1em/1.5em Georgia, "Times New Roman", Times, serif;
    color: rgba(60, 40, 20, 1);
    background-color: rgba(253, 248, 242, 1);
}

/*-------------- Äußerer Container --------------*/
div#container {
    width: 100%;        /* nimmt die verfügbare Breite */
    max-width: 800px;   /* aber nie breiter als 800px */
    margin: 20px auto;
    overflow: auto;
}

/*-------------------- Hintergrund --------------------*/
div#branding {
	z-index: 0;
	position: fixed;
	width: 800px;
	height: 850px;
	overflow: auto;
}

/*--------------- Image auf der Startseite ---------------*/
div#startfoto,
div#foto {
    position: absolute;
    right: 0;
    top: 40px;
}

div#foto {
    opacity: 0.2;
}

/*-------------------- Content --------------------*/
div#header {
	z-index: 2;
	position: absolute;
	width: 800px;
}

/*------------------ Schriftzug ------------------*/
div#pp {
	text-align: center;
	font-size: 3.5em;
	line-height: 1.2em;
	letter-spacing: .1em;
	font-variant: small-caps;
	font-weight: bold;
	font-style: italic;
	text-shadow: 2px 2px 2px rgb(235,235,235);
}

div#content {
	z-index: 2;
	position: absolute;
	margin-top: 50px;
	width: 800px;
}

div.header {
	clear: both;
	margin: 0 0 20px 0;
	padding: 20px 0 0 50px;
	border-top: 1px solid rgb(85,65,50);
	text-align: center;
	width: 750px;
	float: right;
	font-size: 2em;
	letter-spacing: 1em;
	font-variant: small-caps;
	font-weight: bold;
	font-style: italic;
	text-shadow: 2px 2px 2px rgb(235,235,235);
}

h4 {
	clear: both;
	font-style: normal;
	width: 800px;
	margin-bottom: 10px;
}

div.center {
	clear: both;
	width: 800px;
	text-align: center;
	margin-bottom: 20px;
}

div.split {
	clear: both;
	width: 750px;
	margin-bottom: 20px;
	padding-left: 50px;
}

.split > div {
    display: block;
}

img.fotos {
    border: 1px solid rgba(190,160,120,0.8);
    transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

img.fotos:hover {
    border-color: rgba(190,160,120,1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/*-------------- Links --------------*/
a {
    color: rgb(85,65,50);
    text-decoration: none;
    border-bottom: 1px solid rgba(190, 160, 120, 0.8);
}

a:hover {
    border-bottom: 2px solid rgba(190, 160, 120, 1);
}

a:active {
    border-bottom: 1px solid rgba(255, 255, 255, 1);
}
	
/*-----------  Navigationsleiste -----------*/
nav.nav {
    z-index: 100;
    position: fixed;
    top: 20px;
    left: 50%;
    width: 100%;        /* flexibel */
    max-width: 800px;   /* deckt sich mit #container */
    transform: translateX(-50%);
}

/* UL füllt die ganze Nav-Breite */
ul.nav {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* jedes LI bekommt den gleichen Anteil der Breite */
ul.nav li {
    flex: 1;
}

/* Grundstil für alle Navigationslinks */
ul.nav a {
    display: block;
    padding: 5px 10px;
    font-style: normal;
    font-weight: bold;
    font-size: 1em;
    letter-spacing: 0;
    line-height: 1em;
    text-decoration: none;
    text-align: center;
    background-color: rgba(232, 220, 199, 1);
    border: none;
    color: rgba(70, 50, 30, 1);
    text-shadow: 0 0 0 rgba(255, 255, 255, 1);
    white-space: nowrap;
}

/* Aktive Seite */
ul.nav a.navon {
    color: #fff;
    text-shadow: 0 0 0 rgba(35, 35, 35, 1);
}

/* Hover */
ul.nav a:hover {
    color: #fff;
    text-shadow: 0 0 0 rgba(35, 35, 35, 1);
}

/* --- Responsive Styles unter 800px --- */
@media (max-width: 800px) {

    /* Content-Layouts */
    div.center {
        width: 100%;
        padding: 0;
    }

    div.split {
        width: 100%;
        padding-left: 0;
    }

    /* Navigation voll responsive */
    nav.nav {
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        top: 0;                 /* Navigation oben fixiert */
    }

    ul.nav {
        display: flex;
        flex-wrap: nowrap;      /* kein Zeilenumbruch */
        overflow-x: auto;       /* horizontales Scrollen */
        scrollbar-width: none;  /* Firefox Scrollbar verstecken */
    }

    ul.nav::-webkit-scrollbar {
        display: none;          /* Chrome/Safari Scrollbar verstecken */
    }

    ul.nav a {
        white-space: nowrap;
        padding: 8px 12px;      /* mehr Platz für Finger */
    }
}