/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
    background-color: rgb(230,230,236);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 80%;
    color: rgb(74,74,74);
    overflow-x: hidden;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */



#page {
	width: 940px;
	margin: 0 auto;
}

.specialFont {
	font-family: 'ITC Legacy Sans Std', sans-serif;
}

h1 {
	font-weight: bold;
	font-size: 16px;
}

h2 {
	font-weight: bold;
	font-size: 14px;
}

a {
	color: #211B1B;
	text-decoration: underline;
}

.indented {
	margin-left: 30px;
}

/* ========================================================================== */

header {
	background-color: #fff;
	padding: 20px;
}

header ul {
	margin: 0;
	padding: 0;
}

header ul li {
	float: left;
	list-style: none;
	padding-right: 20px;
	height: 18px;
}

header ul li.right {
	float: right;
	padding-right: 0;
}

header ul li.icon.email {
	background-image: url(../img/at-sign.png);
	background-repeat: no-repeat;
	background-position: center left;
	padding-left: 25px;
	display:block;
}

header ul li.icon.tel {
	background-image: url(../img/tel-sign.png);
	background-repeat: no-repeat;
	padding-left: 20px;
	display:block
}


/* ========================================================================== */

nav {
	background-color: rgb(140,145,150);
	min-height: 38px;
}

nav ul {
	margin: 0;
	padding-left: 8px;
}

nav ul li {
	float: left;
}



nav ul li a {
	display: block;
	padding: 12px 10px 8px;
	color: #fff;
	text-decoration: none;
	font-size: 1.4em;
	border-bottom: 3px solid rgb(140, 145, 150);
}
nav ul li a.active,
nav ul li a:hover {
	background-color: rgba(74,74,74,0.2);
	border-bottom: 3px solid rgba(74,74,74,1);
}
nav ul li a.active {
	background-color: rgb(140, 145, 150);
	border-bottom: 3px solid rgba(74,74,74,1);
}
nav ul.small li a {
	display: none;
}

nav ul.small li a {
	padding: 10px 10px 6px;
	font-size: 1.2em;
}


.submenu {
	background-color: rgb(74,74,74);
}

.submenu ul {
	margin: 0;
	padding-left: 8px;
    list-style: none outside none;
}

.submenu ul li {
	float: left;
}

.submenu ul li a:hover {
	color: #fff;
}

.submenu ul li a {
	display: block;
	padding: 8px 10px 4px;
	color: rgba(230,230,236,0.7);
	text-decoration: none;
	font-size: 1.1em;
}

.submenu ul.small li a {
	display: none;
}

.submenu ul li a.active {
	color: #fff;
}

.submenu ul.small li a {
	padding: 10px 10px 6px;
	font-size: 1.2em;
}

/* ========================================================================== */

section .topBlock {
	background-color: rgb(140,180,220);
	position: relative;
}

section .topBlock .logo {
	background-image:url(../img/logo_finance_white.png);
	background-repeat:no-repeat;
	background-size: contain;
	width:390px;
	height:92px;
	float: left;
	margin-left:63px;
	margin-top:115px;
}
section .topBlock .logo.logoVermoegen {background-image: url(../img/logo_capital_white.png);}
section .topBlock .logo.logoImmo {background-image: url(../img/logo_immo_white.png);}

section .topBlock .asidePhoto {
	float: right;
	width: 332px;
	height: 332px;
}

section .topBlock .aside {background-image: url(../img/norma.jpg);}
section .topBlock .asideVermoegensaufbau {background-image: url(../img/Vermoegensaufbau.jpg);}
section .topBlock .asideAV {background-image: url(../img/altersvorsorge.jpg);}
section .topBlock .asideDenkmal {background-image: url(../img/Denkmalschutz.jpg);}
section .topBlock .asideKapital {background-image: url(../img/Kapital.jpg);}
section .topBlock .asideStiftung {background-image: url(../img/Stiftungen.jpg);}
section .topBlock .asideGesundheit {background-image: url(../img/private_krankenversicherung.jpg);}
section .topBlock .asidePflege {background-image: url(../img/pflegerente.jpg);}
section .topBlock .asideAbsicherung {background-image: url(../img/Gesundheit.jpg);}
section .topBlock .asideStart {background-image: url(../img/Neuer_Wall.jpg);}
section .topBlock .asideFamily {background-image: url(../img/familyoffice.jpg);}
section .topBlock .asideKapitalmarkt {background-image: url(../img/kapitalmarktperspektiven.jpg);}
section .topBlock .asideProjekte {background-image: url(../img/projekte.jpg);}
section .topBlock .asideCrowdinvesting {background-image: url(../img/crowdinvesting.jpg);}

section .mainBlock {
    background-color: #fff;
    background-position: right center;
    background-repeat: repeat-y;
}

section .mainBlock .main {
	width: 608px;
	background-color: #fff;
	display: table-cell;
}
section.fullcontent .mainBlock .main {
	width: 100%;
	display: block;
}
section.fullcontent .mainBlock aside {
	display: none;
}

section .mainBlock .main .content {
	padding: 18px;
	text-align: justify;
}

section .mainBlock .main .content h1 {
	margin-top: 0;
}

section .mainBlock aside {
    background-color: rgb(140, 180, 220);
    height: 100%;
    width: 332px;
    display: table-cell;
    color: #fff;
}
section .mainBlock aside a {
    color: #fff;
}

section .mainBlock aside .content {
	padding: 18px;
	padding-top:38px;
}

.vcard .type {
	display: none;
}

.vcard a {
	text-decoration: none;
	color: #5E5E5E;
}

.Zitat {
	padding:18px;
}

.Zitat p {
	margin:0;
	font-weight:bold;
}

.anoben {
	margin-bottom:0;
	font-size: 40px;
}

.anunten {
	margin-top:0;
	font-size:40px;
	margin-left:90%;
}

.Autor p {
	font-style:italic;
	font-size:xx-small;
	margin-top:5px;
}

h2.accordionHeadline {
	cursor: pointer;
	background-image: url(../img/accordion.png);
	background-repeat: no-repeat;
	background-position: left top;
	padding-left: 20px;
}

h2.accordionHeadline {
	cursor: pointer;
	background-image: url(../img/accordion.png);
	background-repeat: no-repeat;
	background-position: left top;
	padding-left: 20px;
}

h2.accordionHeadline.active {
	background-position: left bottom;
}

.accordionContent {
}

.skypeBox {
	background-image: url(../img/Skype_LOGO_25h.jpg);
	background-repeat: no-repeat;
	background-position: left top;
	padding-left: 67px;
}

table {
	width: 100%;
}
table td {
	padding: 3px 10px 3px 0;
	font-size: 80%;
}

/* ========================================================================== */

body.index section {
	margin-bottom: 20px;
}

section .indexBlock {
	float: left;
	width: 620px;
	height: 300px;
	background-color: rgb(140,180,220);
	margin-top: 20px;
	margin-right: 20px;
}

section .indexBlock .logo {
    background-image: url("../img/logo_title.png");
    background-repeat: no-repeat;
    background-size: contain;
    float: left;
    height: 112px;
    margin-left: 63px;
    margin-top: 95px;
    width: 410px;
}

section .photoBlock {
	float: left;
	width: 300px;
	height: 300px;
	position: relative;
	margin-top: 20px;
	margin-right: 20px;
	cursor: pointer;
}
section .photoBlock.nomargin {
	margin-right: 0;
}

section .photoBlock.norma {background-image: url(../img/norma.jpg);}
section .photoBlock.finanz {background-image: url(../img/Vermoegensaufbau.jpg);}
section .photoBlock.vermoegen {background-image: url(../img/altersvorsorge.jpg);}
section .photoBlock.immo {background-image: url(../img/Neuer_Wall.jpg);}

section .photoBlock .logoOverlay {
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 80px;
	background-color: rgba(255,255,255,0.8);
}

section .photoBlock .logoOverlay span {
	background-image: url(../img/logo_finance.png);
	background-position: 20px center;
	background-size: 80% auto;
	background-repeat: no-repeat;
	display: block;
	width: 100%;
	height: 80px;
	max-width: 375px;
}
section .photoBlock .logoOverlay.logoFinanz span {background-image: url(../img/logo_finance.png);}
section .photoBlock .logoOverlay.logoVermoegen span {background-image: url(../img/logo_capital.png);}
section .photoBlock .logoOverlay.logoImmo span {background-image: url(../img/logo_immo.png);}



/* ========================================================================== */

.mainNav {
	position: absolute;
	left: 0;
	bottom: 0;
	font-size: 1.4em;
	color: #fff;
}

.mainNav .content {
	padding: 12px 10px 0px 18px;
}

.mainNav a {
	color: #fff;
	padding-bottom: 8px;
        text-decoration: none;
}

.mainNav a.active {
}

.mainNav .dreieck {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 10px 10px 10px;
	border-color: transparent transparent rgb(140,145,150) transparent;
	margin-left: 316px;
}
body.vermoegensmanagement .mainNav .dreieck,
body.familyoffice .mainNav .dreieck,
body.stiftungskonzepte .mainNav .dreieck,
body.kapitalmarktperspektiven .mainNav .dreieck,
body.uebermich .mainNav .dreieck,
body.arbeitsweise .mainNav .dreieck,
body.kontakt .mainNav .dreieck {
	margin-left: 0;
}
body.immobilien .mainNav .dreieck,
body.immobilienrechner .mainNav .dreieck,
body.finanzierungen .mainNav .dreieck {
	margin-left: 209px;
}

/* ========================================================================== */

.immoListContainer {}

.immoListContainer .immoListBox {
	margin-bottom: 20px;
	cursor: pointer;
}
.immoListContainer .immoListBox.noLink {
	cursor: default;
}

.immoListContainer .immoListBox .immoListElement {
	text-align: left;
}

.immoListContainer .immoListBox .immoListElement .image {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;

	float: left;
	width: 120px;
	height: 120px;
}

.immoListContainer .immoListBox .immoListElement .info {
	margin-left: 120px;
	padding: 5px 10px;
	position: relative;
}

.immoListContainer .immoListBox .immoListElement .info a {
	font-size: 1.17em;
	font-weight: bold;
	text-decoration: none;
}

@media screen and (min-width: 768px) {
	.immoListContainer .immoListBox .immoListElement .info {
		height: 110px;
	}

	.immoListContainer .immoListBox .immoListElement .info .footer {
		position: absolute;
		bottom: 0;
	}
}

/* ========================================================================== */

.immoDetailContainer .galleryContainer .galleryImage {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;

	float: left;
	width: 120px;
	height: 120px;

	margin: 0 10px 10px 0;
	cursor: pointer;
	opacity: 0.5;
}
.immoDetailContainer .galleryContainer .galleryImage:hover {
	opacity: 1;
}


/* ========================================================================== */

footer {
	margin: 1em 18px 2em;
	color: #5E5E5E;
}

footer a {
	display: block;
	text-decoration: none;
	color: #5E5E5E;
}

footer .left {
	float:left;
	margin-right: 10px;
}

footer .right a {
	float: right;
	margin-left: 10px;
}

/* ========================================================================== */

form#formKontakt {}
form#formKontakt label {
	float: left;
	font-weight: bold;
	width: 30%;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	hyphens: auto;
}
form#formKontakt input.input,
form#formKontakt select,
form#formKontakt textarea {
	display:block;
	width: 60%;
	margin-bottom: 1em;
	border: 1px solid #5e5e5e;
	-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
	-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
}

form#formKontakt input.input.error,
form#formKontakt select.error,
form#formKontakt textarea.error {
	border: 1px solid #f00;
	background-color: #fcc;
}

form#formKontakt .terminwunschText {
	float: left;
	width: 100px;
}
form#formKontakt input.input.terminwunsch {
	width: 42%;
}
form#formKontakt .marginLeft {
	margin-left: 30%;
	margin-bottom: 1em;
	width: 60%;
}

form#formKontakt .marginLeft.error {
	background-color: #fcc;
}

form#formKontakt input.input:focus,
form#formKontakt select:focus,
form#formKontakt textarea:focus {
	border: 1px solid #09C;
}

form#formKontakt input.button {
	width: 100px;
	background: #5e5e5e;
	color: #fff;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	border: 1px solid #999;
	padding: 5px;
}
form#formKontakt input.button:hover {
	background: #bfbdbd;
	color: #fff;
}

form#formKontakt .message {
	display: none;
	padding: 5px;
	background-color: #ccc;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

a.btn {
	width: 100px;
	background: #5e5e5e;
	color: #fff;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	border: 1px solid #999;
	padding: 5px;
	text-decoration: none;
}
a.btn:hover {
	background: #bfbdbd;
	color: #fff;
}



/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media screen and (max-width: 939px) {	/* iPad hoch */


	#page {
		width: 100%;
	}
	#page section.homeSection .indexBlock {
		width: 100%;
		height: 120px;
		margin-top: 1px;
	}
	section.homeSection .indexBlock .logo {
		background-size: 90% auto;
		height: 80px;
		left: 20px;
		margin: 0;
		position: relative;
		top: 20px;
		width: 300px;
	}

	section .photoBlock,
	section .photoBlock.nomargin{
		display: inline-block;
		height: 35%;
		margin: 2.5%;
		position: relative;
		width: 45%;
		background-size: cover;
	}



	.main img {
		margin-left: 63px;
		margin-top: 50px;
	}

	nav ul.small li a {
		display: block;
		padding: 10px 10px 6px;
		font-size: 1.2em;
	}
	nav ul li a.active {
		/*border-bottom: none;*/
	}
	nav ul li:hover {
		/*border-bottom: none;*/
	}
	nav ul.big li a {
		display: none;
	}

	.submenu {
		background-color: #a1a1a1;
		width: 100%;
	}

	section .mainBlock .main {
		width: 100%;
		display: block;
	}
	section .mainBlock .main .content {
		text-align: left;
	}
	section .mainBlock aside {
		width: 100%;
		display: block;
		height: auto;
	}

	section .topBlock .logo {
		background-image: url(../img/logo_title.png);
		background-repeat: no-repeat;
		width: 390px;
		height: 92px;
		float: left;
		margin-left: 63px;
		margin-top: 50px;
	}

	section .topBlock .asidePhoto {
		width: 192px;
		height: 192px;
	}
	section .topBlock .aside {background-image: url(../img/tablet/norma.jpg);}
	section .topBlock .asideVermoegensaufbau {background-image: url(../img/tablet/Vermoegensaufbau.jpg);}
	section .topBlock .asideAV {background-image: url(../img/tablet/altersvorsorge.jpg);}
	section .topBlock .asideDenkmal {background-image: url(../img/tablet/Denkmalschutz.jpg);}
	section .topBlock .asideKapital {background-image: url(../img/tablet/Kapital.jpg);}
	section .topBlock .asideStiftung {background-image: url(../img/tablet/Stiftungen.jpg);}
	section .topBlock .asideGesundheit {background-image: url(../img/tablet/private_krankenversicherung.jpg);}
	section .topBlock .asidePflege {background-image: url(../img/tablet/pflegerente.jpg);}
	section .topBlock .asideAbsicherung {background-image: url(../img/tablet/Gesundheit.jpg);}
	section .topBlock .asideStart {background-image: url(../img/tablet/Neuer_Wall.jpg);}
	section .topBlock .asideKapitalmarkt {background-image: url(../img/tablet/kapitalmarktperspektiven.jpg);}

	section .mainBlock .main {
		float: none;
	}

	section .mainBlock aside {
		width: 100%;
		float: none;
	}

}

@media screen and (max-width: 730px) {	/* schmaler als iPad quer */
	#page {
		width: 100%;
	}

	.main img {
		margin-left: 10px;
		margin-top:	40px;
		width:159px;
	}
	section .topBlock {
		height: 210px;
	}
	.mainNav {
		color: #fff;
		font-size: 1.4em;
		width: 100%;
		height: 82px;
		border-top: 1px solid #fff;
	}
	.mainNav .dreieck {
		display: none;
	}
	section .topBlock .logo {
		background-image:url(../img/mobile/logo.png);
		background-repeat:no-repeat;
		width:159px;
		height:38px;
		float: left;
		margin-left:20px;
		margin-top:40px;
	}

	section .topBlock .main {
		width: 55%;
	}

	section .topBlock .asidePhoto {
		width: 115px;
		height: 115px;
	}

	section .topBlock .aside {background-image: url(../img/mobile/norma.jpg);}
	section .topBlock .asideVermoegensaufbau {background-image: url(../img/mobile/Vermoegensaufbau.jpg);}
	section .topBlock .asideAV {background-image: url(../img/mobile/altersvorsorge.jpg);}
	section .topBlock .asideDenkmal {background-image: url(../img/mobile/Denkmalschutz.jpg);}
	section .topBlock .asideKapital {background-image: url(../img/mobile/Kapital.jpg);}
	section .topBlock .asideStiftung {background-image: url(../img/mobile/Stiftungen.jpg);}
	section .topBlock .asideGesundheit {background-image: url(../img/mobile/private_krankenversicherung.jpg);}
	section .topBlock .asidePflege {background-image: url(../img/mobile/pflegerente.jpg);}
	section .topBlock .asideAbsicherung {background-image: url(../img/mobile/Gesundheit.jpg);}
	section .topBlock .asideStart {background-image: url(../img/mobile/Neuer_Wall.jpg);}
	section .topBlock .asideKapitalmarkt {background-image: url(../img/mobile/kapitalmarktperspektiven.jpg);}

	section .mainBlock .main {
		width: 100%;
		float: none;
	}

	section .mainBlock aside {
		width: 100%;
		float: none;
	}

	footer .left,
	footer .right {
		margin-bottom:10px;
		margin-right: 10px;
	}
	footer .right {
		float: right;
	}
}

@media screen and (max-width: 600px) {
	section .photoBlock,
	section .photoBlock.nomargin {
		display: block;
		height: 200px;
		margin: 2%;
		width: 100%;
		background-size: cover;
		background-position: center top 30%;
	}
	section .photoBlock.nomargin {
		background-position: center;
	}
}

@media screen and (max-width: 480px) {	/* iPhone quer */
	form#formKontakt label {
		width: 29%;
	}

	form#formKontakt input.input, form#formKontakt select, form#formKontakt textarea,
	form#formKontakt .marginLeft {
		width: 69%;
	}
	header ul li {
		margin-top: 5px;
	}
}
@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


iframe:focus {
    outline: none;
}

iframe[seamless] {
    display: block;
}

iframe[name="ssr_iframe"] {
    padding-top: 22px;
}

.img-responsive {
	max-width: 100%;
	height: auto;
	display: block;
}

.onlyMobile {
	display: none !important;
}
body.isMobile .onlyMobile {
	display: inline-block !important;
}
