/*
-----------------------------------------------
Layout 1001: Screen Styles
----------------------------------------------- */

body {
	margin: 0;
	padding: 0;
}

.altcolor {
	background-color: #a7a7a6;
}


/* Container */

div#container {
	margin: 0 auto;
	width: 940px;
	background-image: url(https://www.nak-hamburg-rahlstedt.de/s/img/1001-container_bg.gif);
	background-repeat: repeat-y;
	background-position: 239px 0;
}


/* Header */

div#header {
	position: relative;
	padding-bottom: 40px;
	background: #fff;
	zoom: 1;
}
div#header_wrapper {
	padding-top: 20px;
}

div#emotion-header {
	position: relative;
}
div#emotion-header strong#emotion-header-title {
	position: absolute;
	top: 0;
	left: 0;
}


/* Content */

div#content {
	width: 700px;
	float: right;
	background: #fff;
}
div#content div.gutter {
	padding: 0 100px 60px 100px;
}


/* Sidebar */

div#sidebar {
	width: 239px;
	float: left;
	padding: 0 0 40px 0;
}

div#jimdobox {
	margin-bottom: 20px;
}


/* Navigation */

div#navigation {
	margin: 0 0 20px;
	padding: 0 0 30px;
	background: url(https://www.nak-hamburg-rahlstedt.de/s/img/1001-navigation_bg.gif) repeat-x 0 100%;
}

ul.mainNav1 {
	margin: 0;
	padding: 1px 0 0;
	list-style: none;
	background: url(https://www.nak-hamburg-rahlstedt.de/s/img/1001-dots.gif) repeat-x;
}
ul.mainNav1 li {
	width: 239px;
}
ul.mainNav1 li a {
	font-weight: bold;
	display: block;
	width: 219px;
	padding: 5px 10px;
	background: url(https://www.nak-hamburg-rahlstedt.de/s/img/1001-dots.gif) repeat-x 0 100%;
	background-color: #fff !important;
	text-align: right;
	text-decoration: none;
}
ul.mainNav1 li a:hover, ul.mainNav1 li a.current {
	background: transparent !important;
	color: #fff;
}
ul.mainNav2 {
	margin: 0;
	padding: 0;
	list-style: none;
}
ul.mainNav2 li a {
	padding: 5px 30px 5px 10px;
	width: 199px;
}
ul.mainNav3 {
	margin: 0;
	padding: 0;
	list-style: none;
}
ul.mainNav3 li a {
	padding: 5px 50px 5px 10px;
	width: 179px;
}

div#sidebar_content {
	margin: 0 0 20px;
	padding: 0 20px;
}


/* Footer */

div#footer {
	width: 700px;
	margin-left: 240px;
}
div#footer div.gutter {
	background: url(https://www.nak-hamburg-rahlstedt.de/s/img/1001-dots.gif) repeat-x;
	background-color: #fff;
	float: left;
	width: 660px;
	padding: 10px 20px;
}

br.c {
	display: block;
}                            

/* =========================================
   NAK HAMBURG-RAHLSTEDT
   Modernisierung - Schritt 1
   ========================================= */

/* Heller, freundlicher Hintergrund */
body {
    background: #f5f7f8;
    font-family: Arial, Helvetica, sans-serif;
    color: #263b43;
    line-height: 1.6;
}

/* Breiteres Seitenlayout */
div#container {
    width: 1100px;
    max-width: 96%;
    background: #ffffff;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

/* Kirchenfoto */
div#header {
    padding-bottom: 0;
    background: #ffffff;
}

div#header_wrapper {
    padding-top: 0;
}

div#header_wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

/* Hauptinhalt */
div#content {
    width: calc(100% - 260px);
    background: #ffffff;
}

div#content div.gutter {
    padding: 35px 45px 60px;
}

/* Navigation links */
div#sidebar {
    width: 260px;
    background: #edf4f5;
}

ul.mainNav1 li,
ul.mainNav1 li a,
ul.mainNav2 li a,
ul.mainNav3 li a {
    box-sizing: border-box;
    width: 100%;
}
}
ul.mainNav1 li a {
    text-align: left;
    padding: 10px 18px;
    font-weight: normal;
    background-color: #edf4f5 !important;
    color: #174e59;
}

/* Seitenabschluss */
div#footer {
    width: auto;
    margin-left: 260px;
}

div#footer div.gutter {
    box-sizing: border-box;
    width: 100%;
    float: none;
    background: #ffffff;
	}
/* NAK Rahlstedt - Kopfbereich optimieren */

div#header_wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
}

div#header_wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

/* Begruessung auf dem Kirchenfoto */

div#header_wrapper .nak-willkommen {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 25px 20px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(
        to top,
        rgba(10, 42, 48, 0.85),
        rgba(10, 42, 48, 0)
    );
}

div#header_wrapper .nak-willkommen h1 {
    margin: 0;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: bold;
    line-height: 1.2;
}

div#header_wrapper .nak-willkommen p {
    margin: 8px 0 0;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1.4;
}


/* ======================================
   NAK RAHLSTEDT - HAUPTNAVIGATION
   ====================================== */

nav.nak-hauptnavigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: #174e59;
    padding: 0 15px;
    clear: both;
}

nav.nak-hauptnavigation a,
nav.nak-hauptnavigation a:visited {
    display: block;
    padding: 17px 20px;
    color: #ffffff !important;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

nav.nak-hauptnavigation a:hover,
nav.nak-hauptnavigation a:focus {
    background: #287482;
    color: #ffffff !important;
}

/* Anpassung für Smartphones */

@media screen and (max-width: 700px) {
    nav.nak-hauptnavigation {
        padding: 5px;
    }

    nav.nak-hauptnavigation a {
        box-sizing: border-box;
        width: 50%;
        padding: 12px 8px;
        font-size: 14px;
    }
}


/* ========================================
   NAK RAHLSTEDT - SMARTPHONE-DARSTELLUNG
   ======================================== */

@media screen and (max-width: 767px) {

    /* Gesamte Seitenbreite nutzen */
    div#container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-shadow: none;
        background: #ffffff;
    }

    /* Kirchenfoto */
    div#header_wrapper {
        height: 230px;
        padding-top: 0;
    }

    div#header_wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 18%;
    }

    /* Begruessung */
    div#header_wrapper .nak-willkommen {
        padding: 18px 12px;
    }

    div#header_wrapper .nak-willkommen h1 {
        font-size: 25px;
    }

    div#header_wrapper .nak-willkommen p {
        font-size: 15px;
    }

    /* Navigation in zwei Spalten */
    nav.nak-hauptnavigation {
        display: flex;
        flex-wrap: wrap;
        padding: 5px;
    }

    nav.nak-hauptnavigation a {
        box-sizing: border-box;
        width: 50%;
        padding: 14px 5px;
        font-size: 15px;
    }

    /* Hauptinhalt volle Breite */
    div#content {
        float: none;
        width: 100%;
        box-sizing: border-box;
    }

    div#content div.gutter {
        padding: 22px 18px 35px;
    }

    /* Bilder an Handybreite anpassen */
    div#content img {
        max-width: 100%;
        height: auto;
    }

    /* Alte Navigation vorerst unter Inhalt */
    div#sidebar {
        float: none;
        width: 100%;
        box-sizing: border-box;
        clear: both;
    }

    div#sidebar ul.mainNav1 li,
    div#sidebar ul.mainNav1 li a {
        width: 100%;
        box-sizing: border-box;
    }

    /* Fussbereich */
    div#footer {
        width: 100%;
        margin-left: 0;
    }

    div#footer div.gutter {
        box-sizing: border-box;
        width: 100%;
    }
}


/* NAK Rahlstedt - Handybreite korrigieren */

@media screen and (max-width: 767px) {

    html, body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    div#container,
    div#wrapper {
        box-sizing: border-box;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
}



}

/* Bilder passen sich der Breite an */
div#content img {
    max-width: 100%;
    height: auto;
}