:root {
    --primary: #334D74;
    --secondary: #ECECEC;
    --accent: #fdc300;
    --transition: 0.25s;
	--website-width: 1920px;
    --textshadow: 0 1px 1px #1e2d44;
}

html, body {
    height: 100vh;
}

body {
    color: var(--primary);
    background: #4B6EA5;
    background: linear-gradient(#4569A1, #7796C2);
    font-family: 'Roboto', sans-serif;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    margin-top: 30px;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.4;
}

h1, h2 {
    margin: 64px 0 32px 0;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    max-width: 960px;
    line-height: 1.1;
}

h1:first-child {
    margin-top: 0;
}

h2 {
    font-size: 42px;
}

p {
    margin: 16px 0;
}

h3 {
    font-size: 28px;
    margin: 32px 0 16px 0;
}

#content {
    background: var(--secondary);
    padding: 3em;
    clip-path: polygon(0 0, 960px 0, 1180px 130px, 100% 140px, 100% 100%, 0 100%);
    border-radius: 1em;
    position: relative;
}

#wrap {
	max-width: var(--website-width);
    margin: 0 auto;
    position: relative;
    padding-bottom: 295px;
    min-height: 100%;
}

input {
	outline: none;
}

input[type=search] {
	font-family: inherit;
	font-size: 22px;
	font-weight: 300;
}

input::-webkit-search-decoration,
input::-webkit-search-cancel-button {
	display: none; 
}

#searchbar {
	margin-left: 10px;
}

input[type=search] {
	background: var(--secondary) url(https://static.tumblr.com/ftv85bp/MIXmud4tx/search-icon.png) no-repeat 9px center;
	border: solid 1px var(--primary);
	padding: 9px;
	border-radius: 10em;
	transition: all .5s;
}
input[type=search]:focus {
	background-color: var(--secondary);
	border-color: var(--accent);
	box-shadow: 0 0 50px rgba(255,255,255,.25);
}

#searchbar input[type=search] {
	width: 48px;
	padding-left: 10px;
	color: transparent;
	cursor: pointer;
}
#searchbar input[type=search]:hover {
	background-color: var(--accent);
}
#searchbar input[type=search]:focus {
	width: 180px;
	padding-left: 32px;
	color: #000;
	background-color: var(--secondary);
	cursor: auto;
	border-radius: 4px;
}

#searchbar input::-webkit-input-placeholder {
	color: transparent;
}

#logo {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.15));
}

.svg {
    width: 350px;
}

nav {
	max-width: var(--website-width);
	position: relative;
    margin: 0 60px;
    margin-bottom: 20px;
}

nav ul {
	z-index: 100;
	position: relative;
	font-family: 'Roboto';
	font-weight: 300;
	font-size: 32px;
	text-shadow: 0 1px 1px var(--primary);
	color: white;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	list-style-type: none;
}

nav ul li {
	padding: 0 20px 0 20px;
}

nav ul a {
	color: rgba(255,255,255, .5);
	text-decoration: none;
}

nav ul a:hover {
	color: white;
	transition: var(--transition);
    border-bottom: 3px solid var(--primary);
}


#intro {
    max-width: 900px;
}

.thumb {
    overflow: hidden;
	background: var(--primary);
}

.thumb .bgimg:hover {
    object-fit: cover;
    transform: scale(1.025);
    transition: var(--transition);
    outline: 1px solid transparent; /* ugly fix for anti aliasing jitter, srsly? */
    z-index: 1;
}

ul.megalist {
    column-width: 250px;
	padding: 0;
    word-wrap: break-word;;
}

ul.megalist > li > a {
    color: var(--primary);
    text-decoration: none;
    padding: 4px 20px 4px 15px;
    display: inline-flex;
}

ul.megalist  > li > a:before {
    content: "\00a0\00a0\00a0";
}

ul.megalist > li > a:hover {
    color: var(--primary);
    background: var(--accent);
    padding: 4px 20px 4px 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

ul.megalist > li > a:visited {
    color: #99a6b9;
}

ul.megalist > li > a:hover:before {
    content: '»';
    margin-right: 5px;
}

/* das sparen wir uns mal
ul.megalist > li > a .megalist-value {
    color: white;
    background: var(--primary);
    border-radius: 50%;
    height: 20px;
}*/


ul.megalist > li {
    list-style-type: none;
    padding: 4px;
}


/* Home page */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.image-grid.-first-large > :first-child {
    grid-area: 1/1 / 3/3;
}

.image-grid > .emptylist {
    grid-column: 1 / -1;
    display: none;
}
/* .emptylist is the first child only if there are no planes to show. */
.image-grid > .emptylist:first-child {
    display: block;
}

.caption-image {
    display: grid;
    grid-template-rows: [image-start] 1fr [caption-start] 3em [image-end];
    height: 100%;
}

.caption-image > .bgimg {
    background-size: cover;
    background-position: center;
    height: 100%;
    min-height: 200px;
    max-width: 100%;
    grid-row: image-start / image-end;
    grid-column: 1;
}

.thumb {
    margin: 4px;
    box-shadow: 0px 2px 4px rgba(0,0,0,.25);
}

.caption-image > .caption {
    backdrop-filter: blur(7px);
    grid-row: caption-start;
    grid-column: 1;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.25);
    color: white;
    z-index: 2;
}

.caption-image > .caption > .sub-caption {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 300;
}

a.caption-image:hover {
    filter: brightness(1.05);
    transition: var(--transition);
}

a.caption-image, a.caption-image:visited {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0,0,0,.5);
    font-size 19px;
}

.show-more {
    grid-column: 1 / -1;
    height: 3em;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.show-more > a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--primary);
    border-radius: 0.5em;
    padding: 0.4em 1em;
}

.show-more > a:hover {
    color: var(--secondary);
    background: var(--primary);
    transition: var(--transition);
}

.show-more > .dash {
    width: 40%;
    height: 0;
    border-bottom: 2px dashed var(--primary);
}

.latest-articles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.article-box {
    color: var(--primary);
    text-decoration: none;
}
.article-box > img {
    width: 100%;
}
.article-box > .caption > .title {
    font-weight: bold;
}

._hidden {
    display: none;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    font-weight: 500;
    justify-content: center;
}

.stats > .stat-item > p, .stats > .stat-item > a p {
    margin: 0;
    font-weight: 300;
}

.stat-item {
    text-align: center;
    padding: 0 3em;
}

.stat-item a {
    text-decoration: none;
    color: var(--primary);
    font-weight: inherit;
}

.number {
    font-size: 64px;
}

button {
    max-width: 100px;
}

hr {
    max-width: 90%;
    margin: 40px;
}

span.footer {
    opacity: 65%;
    text-align: center;
}

a button {
    border: none;
    width: 100%;
    margin-top: 2em;
    padding: 1em;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.015em;
    text-shadow: var(--textshadow);
    
    /*box-shadow: 1px 1px black;
      box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.2),
    -5px -5px 10px 0 rgba(255, 255, 255, 0.5);*/
    
    box-shadow: 0 0 25px 2px rgba(0,0,0,0.25);
}

a button:hover {
    background: var(--accent);
    color: var(--primary);
    transition: var(--transition);
    text-shadow: none;
    font-weight: 600;
    letter-spacing: 0.0015em;
    box-shadow: 0 0 5px 0px rgba(0,0,0,0.25);
}

.bg-bottom {
      background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
    background-image: url("../../img/bg-bottom.png");
    width: 100%;
    position: absolute;
    bottom: 0;          /* Footer height */
    height: 295px;
}
