/*
Theme Name: Visitlucerne Theme
Description: Template von Webtheke. Keine zusätzlichen Plugins nötig.
Version: 1.0
Author: Samuel Schwegler
Author URI: https://webtheke.ch/
*/

@import url('https://fonts.googleapis.com/css?family=Ubuntu:500|Open+Sans:400');

* {
	box-sizing: border-box;
	font-family: 'Open Sans', 'sans-serif';
	font-size: 17px;
}

html {
	padding: 82px 0px 0px;
}

body, html {
	min-height: 100%;
	margin: 0px;
	font-weight: 400;
	line-height: 1.45;
	color: #333;
}

body.home {
    background: #333;
}

body.home .container {
    color: #fff;
}

.bg {
	background-image: url('img/background_sm.jpg');
	background-size: cover;
	background-position: top;

}

:root {
	--green: #378379;
	--blue: #307CBF;
	--lightblue: #049DBF;
	--greyblue: #2f4858;
	--dark: #333;
	--light: #eefbff;
}

/**
* Schriften
*/
p {
	margin: 0px 0px 1.25em;
}

h1, h2, h3, h4, h5 {
  margin: 1.5rem 0 1rem;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  margin-top: 0;
  font-size: 4.209em;
}

h2 {font-size: 3.157em;}

h3 {font-size: 2.369em;}

h4 {font-size: 1.414em;}

h5 {font-size: 1.333em;}

small, .text-small {font-size: 0.75em;}

a {
	transition: 0.5s;
	color: var(--blue);
}

a:hover {
	color: var(--lightblue);
}

.button {
	text-align: center;
	background: var(--blue);
	color: #fff;
	text-decoration: none;
	display: block;
	padding: 5px 10px;
	border: none;
  	cursor: pointer;
	border-radius: .25rem;
	transition: 0.5s;
}

.button:hover {
	background: var(--lightblue);
	color: #fff;
}

.button-inline {
    display: inline-block;
}

/**
* Containers
*/
.container {
    min-height: 100vh;
    min-height: calc(100vh - 260px);
	max-width: 1100px;
	margin: 0px auto;
}

body:not(.home) .container {
	display: grid;
	grid-template-columns: [start] auto auto auto [end];
	grid-template-rows: auto auto auto;
	grid-gap: 1.25rem;
	grid-template-areas: 
		"highlight highlight highlight"
		"more more more"
		"rest rest rest"
}

.container-small {
	max-width: 800px;
}

header {
	position: fixed;
    width: 100%;
    z-index: 10;
    background: var(--greyblue);
    top: 0px;
	left: 0px;
	box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}

.content {
	margin: 0px auto;
	max-width: 1100px;
}

.menu-append {
	max-width: 400px;
	float: right;
}

sidebar {
	grid-area: sidebar;
	padding: 1em 0px;
	position: fixed;
	top: 0px;
}

#highlight {
	grid-area: highlight;
	position: relative;
}

#more {
	grid-area: more;
}

#rest {
	grid-area: rest;
}

footer {
		border-top: 1px solid #dddddd;
		margin: 4rem 0px 0px;
		padding: 4rem 0px;
		background: #ffffff;
}

footer h4 {
		margin-top: 0px;
}

#highlight h2 {
    position: absolute;
    bottom: 0;
    color: #fff;
    left: 1rem;
    text-shadow: 2px 2px 4px #000000;
    max-width: 75%;
}

/**
* Grid Zusätze
*/
.mb {
	margin-bottom: 1em;	
}

.mt {
    margin-top: 1em;
}

.ml {
    margin-left: 1em;
}

.mr {
    margin-right: 1em;
}

.m {
	margin: 1rem;
}

.mb-double {
	margin-bottom: 2em;
}

.mb-half {
	margin-bottom: 0.5em;
}

.cols2, .cols2-s-w, .cols2-w-s, .cols3, .cols4 {
	display: inline-grid;
	grid-template-rows: auto;
	grid-gap: 1.25rem;
	width: 100%;
}

.cols2 {
	grid-template-columns: 1fr 1fr;
}

.cols2-s-w {
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-areas: 
		"short wide wide";
}

.cols2-w-s {
	grid-template-columns: 1fr 1fr 300px;
	grid-template-areas: 
		"wide wide short";
    margin-bottom: 1.25rem;
}

.cols2-s-w > div:nth-child(2), .cols2-w-s > div:nth-child(1) {
	grid-area: wide;
}

.cols2-s-w:not(:last-of-type){
    margin-bottom: 1.25rem;
}

.cols2-s-w div img {
	height: calc(100% + 2rem);
	margin: -1rem 0px 0px -1rem;
	width: calc(100% + 2rem);
	border-radius: .4rem 0px 0px .4rem;
}

.cols3 {
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-areas: 
		"one two three"
}

.cols3 div:nth-child(2) {
	grid-area: two;
}


.cols4 {
	grid-template-columns: 1fr 1fr 1fr 1fr;
}

.text-middle {
	display: table;
}

.text-middle > div {
	display: table-cell;
	vertical-align: middle;
}
/**
* Form
*/
input, textarea {
	width: 100%;
	background: #f5f3f3;
	border: 1px solid #aaa;
	padding: 5px;
	resize: none;
	border-radius: .25rem;
}

/**
* Menu
*/
.menu {
	list-style: none;
	padding: 0px;
	margin: 0px;
}

header .menu li{
	float: left;
	padding: 1.25rem 1rem 1.25rem 1rem;
}

header .main-menu li:first-child{
	margin-left: 0px;
}

header .main-menu li a {
	text-decoration: none;
	height: 35px;
	display: block;
	line-height: 35px;
	color: #ffffff;
	font-family: 'Ubuntu', sans-serif;
}

.menu li.current-menu-item a {
	border-bottom: 2px solid #ffffff;
}

header .lang.button {
	width: 40px;
	color: rgba(0,0,0,0);
}

/* menu level 2 */
header .main-menu li:hover.menu-item-has-children .nav-expand-content, header .main-menu li.current-page-ancestor .nav-expand-content {
    display: block;
}

.nav-expand-content {
    background:white;
    display: none;
    width: 100%;
    position: fixed;
    left: 0px;
    top: 77px;
    transition: 0.6s;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}

.nav-expand-content ul {
    list-style: none;
    padding: 0px;
}

header .main-menu .nav-expand-content li{
	float: left;
	padding: 0.75rem 1rem .75rem 1rem;
}

header .main-menu .nav-expand-content li a {
    color: #333;
}

header .main-menu .nav-expand-content li.current-menu-item a {
	border-bottom: 2px solid #333;
}

.nav-back-link, .next {
    display: none !important;
}


input.search {
	width: 150px;
}

/**
* Kleine Elemente
*/
.block, .card {
	padding: 1em;
	background: var(--greyblue);
	color: #fff;
	border-radius: .4rem;
	position: relative;
}

.block-bg {
	background: var(--greyblue);
	border-radius: .4rem;
}

.block h3, .card h3 {
	margin-top: 0px;
}

.card p, .card h3, .card h4, .card li, .card td, .block p, .block h3, .block h4 {
		text-shadow: 2px 2px 4px #000000;
} 

.block p, .block h3, .block h4 {
	text-align: left;
}

.card p, .card h3, .card h4 {
	text-align: center;
    margin-top: 0px;
}

div p:last-of-type {
	margin-bottom: 0px;
}

.list {
	list-style: none;
	margin: 0px;
	padding: 0px;
	text-align: center;
}

.list *, .facts tr * {
	font-size: 1.25em;
	margin-bottom: 10px;
}

.card .list li:last-child {
    margin-bottom: 0px;
}

.facts {
	width: 100%;
	max-width: 240px;
	margin: 0px auto;
}

.facts tr td:first-child {
	width: 25%;
	text-align: center;
}

.img-descr {
	text-align: right;
	margin: 0px;
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	color: #fff;
}

.text-cols2 {
	columns: 2;
	column-gap: 1rem;
}

.map iframe {
	width: 100%;
	border-radius: .4rem;
}

h1#logo {
    float: left;
    padding: 1.25rem 1.25rem 1.25rem 1rem;
    margin: 0px;
    line-height: 1.5;
    font-size: 26px;
    color: white;
}

/**
* img
*/
img {
	display: block;
	border-radius: .25rem;
	width: 100%;
	max-height: 700px;
	object-fit: cover;
}

.img-container {
    max-height: 500px;
    position: relative;
}

.image-overlay {
    position: absolute;
	width: 100%;
	height: 33%;
	background: rgba(255,255,255,0);
	background-image: -webkit-linear-gradient(rgba(255,255,255,0) 0%, rgba(0, 0, 0, 0.8) 100%);
	background-image: -o-linear-gradient(rgba(255,255,255,0) 0%, rgba(0, 0, 0, 0.8) 100%);
	background-image: linear-gradient(rgba(255,255,255,0) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.9) 100%);
	transition: all 0.3s ease;
	bottom: 0px;
	border-radius: 0px 0px .25rem .25rem;
}

/**
* Blocks
*/
/* Trip */
.trip {
	background: var(--greyblue);
	position: relative;
	border-radius: .4rem;
	padding-bottom: 110px;
}

.trip img {
	width: 100%;
	display: block;
	object-fit: cover;
	height: 100%;
	border-radius: .4rem;
}

.trip .image-overlay {
	bottom: 110px;
	background-image: linear-gradient(rgba(255,255,255,0) 0%, rgba(52, 65, 81, 0.6) 50%, var(--greyblue) 100%);
}

.trip .trip-text {
	position: absolute;
	margin: 0px;
	width: calc(100% - 115px);
	left: 1rem;
	bottom: 1rem;
	text-align: left;
	color: #ffffff;
	text-shadow: 2px 2px 4px #000000;
}

.trip p {
	margin: 0px;
}

a.more {
	display: inline-block;
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	z-index: 1;
	width: 70px;
}

.trip a.more:hover, .trip:hover,  #side-cards > .card:hover {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Img-Block */
.image-block {
	position: relative;
}

/**
*	Trip Page
*/
.wp-post-image {
	max-height: 500px; 
}

#side-cards {
    margin-top: -88px;
    z-index: 3;
    position: sticky;
    top: 8em;
    bottom: 0px;
    height: auto;

}

#main-highlight {
    position: absolute;
    top: 19px;
    transform: rotate(45deg);
    font-size: 70px;
    left: 20px;
    text-shadow: 2px 2px 4px #000000;
}

/**
* Responsive Stuff
*/
@media screen and (max-width: 1200px) {
	body {
		margin: 0px 1rem;	
	}
	
	.bg {
		background: #ffffff;
	}
	
	.wp-post-image {
		height: 300px;
	}
}

@media screen and (max-width: 1200px) and (min-width: 1000px) {
	.cols3 {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		grid-template-areas:  
			"one two"
			"three two"
	}
	
	.cols4, .cols2 .cols2 {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
	}
	
	.trip img {
		max-height: 200px;
	}
	
	.trip:nth-child(2) img {
		max-height: 100%;
	}
}

@media screen and (max-width: 1000px) {
	* {
		font-size: 14px;	
	}
	
	h1 { font-size: 2.488em; }

	h2 {font-size: 2.074em;}

	h3 {font-size: 1.728em;}

	h4 {font-size: 1.44em;}

	h5 {font-size: 1.2em;}

	small, .text-small {font-size: 0.75em;}
	
	.container {
		grid-template-columns: auto;
		grid-template-rows: auto auto auto auto;
		grid-gap: 1em;
		grid-template-areas: 
			"header"
			"highlight"
			"more"
			"rest"
	}
    
    .cols2-s-w, .cols2-w-s {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: 
            "wide"
            "short"
    }
    
    /* Sidebar */
    #side-cards {
        margin-top: 0px;
        grid-template-columns: 1fr 1fr 1fr;
        display: inline-grid;
        grid-template-rows: auto;
        grid-template-areas: 
            "one two three";
        grid-gap: 1.25rem;
    }
    
    #side-cards .card:nth-child(1) {
        grid-area: one;
    }
    
    #main-highlight {
        display: none;
    }
    
	
	footer {
		margin: 2rem 0px 0px;
		padding: 2rem 0px 0px;
	}
}

@media screen and (max-width: 800px) {
	.wp-post-image {
		height: 300px;
	}
	
	.trip:not(:nth-child(2)) img {
		max-height: 200px;
	}
	
	#highlight .img-descr {
		display: none;
	}
	
	.cols3 {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		grid-template-areas:  
			"one two"
			"three two"
	}
}

@media screen and (max-width: 550px) {
	.cols2 {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;	
	}
	
	.cols3, #side-cards {
        width: 100%;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		grid-template-areas:  
			"one"
			"two"
			"three"
	}
	
	.cols2-s-w {
		grid-template-columns: 1fr;
		grid-template-areas: 
			"left"
			"wide-right";
	}
	
	.trip img {
		max-height: 200px;
	}
}

/* Popup Box */
/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {opacity: 0;} 
    to {opacity: 1;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity:1 ;}
}

.popupBoxWrapper{
	width: 550px;
	margin: 120px auto;
	text-align: left;
	z-index: 10;
}

.popupBoxContent{
	background-color: #ffffff;
	padding: 20px;
	position: relative;
    color: #333;
}

.popupBoxContent table td input{
	width: 150px;
}

.popupBoxContent h3 {
	margin: 0px 0px 0.5em;
}

a.close-link {
	color: #3E4042;
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 22px;
    text-decoration: none;
}

/* Popups */
#popupBoxImpressum {
    top: 0; left: 0; position: fixed; width: 100%; height: 120%;
    background-color: rgba(0,0,0,0.7);
    z-index: 8;
    transition-duration: 1s;
}

@media screen and (max-width : 600px)  {
    .popupBoxWrapper{
        width: 80%;
    }
}

