/* -------------------------------------------- */
/* Codemart: Website */
/* Version: 4 */
/* -------------------------------------------- */
/* Created by @twotribes, Germany */
/* -------------------------------------------- */
/* StyleSheet Scope: ACTOR-INDEPENDENT RESOURCES */
/* -------------------------------------------- */

/* !-------------------------------------------- */
/* !LAYOUT: Internal navigation for a section */
/* !-------------------------------------------- */

/* --- Outer container */
.content-nav {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: 100%;
    margin-top: -40px;
    padding-top: 30px;
    background: rgba(255,255,255,0.4);
    position: relative;
}

.content-nav:after {
    content: "";
    display: block;
    position: absolute;
    background: -webkit-linear-gradient(bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
    background: -moz-linear-gradient(bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
    background: -ms-linear-gradient(bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
    background: linear-gradient(bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Link row */
.content-nav li {
    border-bottom: 2px solid #fff;
}

.content-nav li:last-child {
    border-bottom: none;
}

/* --- Action button */
.content-nav .action {
    color: #4a769a;
    display: block;
    padding: 10px 30px 10px 30px;
    text-decoration: none;
    transition: color .2s ease;
    position: relative;
}

.content-nav .action span {
    font-weight: 300;
}

.content-nav .action:hover, 
.content-nav .action.active {
    color: #233c51;
    transition: color .2s ease;
}

/* Buttons with icons */
.content-nav .action-next:before, 
.content-nav .action-previous:before, 
.content-nav .action-rss:before {
    content: "";
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    right: 7px;
    top: 50%;
    margin-top: -9px;
    background: center no-repeat;
}

.content-nav .action-rss:before {
    background-image: url("./img/icon_rss.svg");
}

.content-nav .action-next:before, 
.content-nav .action-previous:before {
    background-image: url("./img/icon_arrow.svg");
    margin-top: -7px;
}

.content-nav .action-previous:before {
    transform: rotateX(180deg);
    margin-top: -10px;
}

/* !-------------------------------------------- */
/* !LAYOUT: Content container & basic building blocks */
/* !-------------------------------------------- */

.content-part {
margin-bottom: 2.5em;
}

.content-container p {
margin-bottom: 0.7em;
}

.content-container ul {
margin-bottom: 0.7em;
}

.content-container li {
margin-bottom: 0.3em;
}

.content-part h1,
.content-part h2 {
font-weight: 500;
font-size: 16px;
letter-spacing: 0.1em;
margin-bottom: 0.7em;
text-transform: uppercase;
}

.content-part h3, 
.content-part h4 {
font-weight: 500;
letter-spacing: 0.05em;
}

/* --- General links */
.content-container .action-infolink, 
.content-container a {
color: #4a769a;
font-weight: 400;
text-decoration: none;
transition: color .5s ease;
}

.content-container .action-infolink:hover, 
.content-container a:hover {
color: #233c51;
transition: color .5s ease;
}

/* !-------------------------------------------- */
/* !COMPONENT: Images with container */
/* !-------------------------------------------- */

.substance-image {
    position: relative;
    text-align: center;
    font-size: 0.1px;
}

.substance-image .action-viewer {
    display: block;
    width: 100%;
    height: 100%;
}

.substance-image .action-viewer:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgb(79, 77, 136) url("./img/icon_loupe_white.svg") center no-repeat;
    transition: background-color 0.3s ease;
}

.substance-image .action-viewer:hover:before {
    background-color: #e75328;
    transition: background-color 0.3s ease;
}

.substance-image img {
    display: block;
    width: 100%;
    transition: opacity 0.3s ease;
}

.substance-image.image-landscape img {
}

.substance-image.image-portrait img {
}

.substance-image.image-presized img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.substance-image.image-presized.image-landscape img {
    width: 100%;
    height: auto;
    max-height: 100%;
}

.substance-image.image-presized.image-portrait img {
    width: auto;
    height: 100%;
    max-width: 100%;
}

/* !-------------------------------------------- */
/* !COMPONENT: Timestamp */
/* !-------------------------------------------- */

/* --- Box layout */
.substance-timestamp {
    position: relative;
    width: 45px;
    height: 45px;
    text-align: center;
    border: 1px solid #4a769a;
    margin-bottom: 25px;
}

/* --- Month */
.substance-timestamp .date-month {
    display: inline;
    text-transform: uppercase;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    visibility: hidden;
}

.substance-timestamp .date-month mark {
    display: block;
    background: #4a769a;
    color: #fff;
    visibility: visible;
}

/* --- Day */
.substance-timestamp .date-day {
    position: absolute;
    width: 100%;
    bottom: -12px;
    left: 0;
    color: #4a769a;
    font-size: 19px;
    font-weight: 400;
}

/* --- Year */
.substance-timestamp .date-year {
    position: absolute;
    width: 100%;
    bottom: -32px;
    left: 0;
    color: #4a769a;
    font-size: 13px;
    font-weight: 500;
}

/* !-------------------------------------------- */
/* !COMPONENT: Emphasized text */
/* !-------------------------------------------- */

em {
    font-style: normal;
    font-weight: bolder;
}

/* !-------------------------------------------- */
/* !COMPONENT: Structured text (from Markdown sources) */
/* !-------------------------------------------- */

.substance-richtext {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.substance-richtext:after {
    content: "";
    display: block;
    clear: both;
}

.substance-richtext.richtext-inverse {
    color: #fff;
}

.substance-richtext.richtext-flattened {
    font-size: inherit;
    line-height: inherit;
}

.substance-richtext * {
    font-weight: 300;
    line-height: 1.3;
}

.substance-richtext.richtext-flattened * {
    font-weight: inherit;
}

/* --- Truncated, flat snippets */
/* We're assuming font-size 16px here because it's currently used in all instances */
.substance-richtext.richtext-flattened.richtext-truncated {
    overflow: hidden;
    position: relative;
    max-height: 82px;
}

.substance-richtext.richtext-flattened.richtext-truncated:after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 21px;
    width: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,1));
}

/* --- Headlines */
.substance-richtext h1, 
.substance-richtext h2 {
    margin-top: 1.2em;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.1em;
    margin-bottom: 0.7em;
    text-transform: uppercase;
}

.substance-richtext h3, 
.substance-richtext h4 {
    margin-top: 1.2em;
    font-size: 16px;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.05em;
    margin-bottom: 0.3em;
}

/* h5 + h6 shouldn't be used here */
.substance-richtext h5, 
.substance-richtext h6 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 0.3em;
}

.substance-richtext h1:first-child, 
.substance-richtext h2:first-child, 
.substance-richtext h3:first-child, 
.substance-richtext h4:first-child, 
.substance-richtext h5:first-child, 
.substance-richtext h6:first-child {
    margin-top: 0;
}

.substance-richtext.richtext-flattened h1, 
.substance-richtext.richtext-flattened h2, 
.substance-richtext.richtext-flattened h3, 
.substance-richtext.richtext-flattened h4, 
.substance-richtext.richtext-flattened h5, 
.substance-richtext.richtext-flattened h6 {
    display: inline;
    font-weight: 300;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: normal;
    font-style: normal;
    margin: 0;
    padding: 0;
    color: inherit;
    text-transform: inherit;
}

/* --- Paragraphs + emphasis */
.substance-richtext p {
    margin-bottom: 0.9em;
}

.substance-richtext.richtext-flattened p {
    display: inline;
    margin: 0;
}

/* Emphasis */
.substance-richtext em, 
.substance-richtext b {
    font-weight: 400;
}

.substance-richtext strong {
    font-weight: 500;
    color: #233c51;
}

.substance-richtext i {
    font-style: italic;
}

.substance-richtext.richtext-flattened em, 
.substance-richtext.richtext-flattened b, 
.substance-richtext.richtext-flattened i, 
.substance-richtext.richtext-flattened strong {
    font-weight: inherit;
    text-decoration: none;
    color: inherit;
}

/* Strike-through */
.substance-richtext del {
    font-weight: inherit;
}

.substance-richtext.richtext-flattened del {
    text-decoration: none;
}

/* --- Embedded links */
.substance-richtext a, 
.substance-richtext a > * {
    font-weight: 400;
    display: inline;
}

.substance-richtext a:before {
    content: "→\00a0";
    color: inherit;
    font-weight: 300;
}

.substance-richtext a:not([class]) {
    color: #4a769a;
    transition: color ease 0.2s;
}

.substance-richtext.richtext-inverse a:not([class]) {
    color: #fff;
    text-decoration: underline;
    transition: opacity ease 0.2s;
}

.substance-richtext a:not([class]):hover {
    color: #233c51;
    transition: color ease 0.2s;
}

.substance-richtext.richtext-inverse a:not([class]):hover {
    color: #fff;
    opacity: 0.75;
    transition: opacity ease 0.2s;
}

.substance-richtext.richtext-flattened a, 
.substance-richtext.richtext-flattened a:hover {
    pointer-events: none;
    font-weight: inherit;
    color: inherit;
    display: inline;
    cursor: default;
    opacity: 1;
    text-decoration: none;
}

.substance-richtext.richtext-flattened a:before {
    content: "";
}

/* --- Bullet lists */
.substance-richtext ul, 
.substance-richtext ol {
    margin-bottom: 0.9em;
}

.substance-richtext ol {
    counter-reset: li;
}

.substance-richtext.richtext-flattened ul, 
.substance-richtext.richtext-flattened ol {
    display: inline;
    margin: 0;
}

.substance-richtext li {
    margin-left: -25px;
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.4em;
}

.substance-richtext li:last-child {
    margin-bottom: 0;
}

.substance-richtext.richtext-flattened li {
    display: inline;
    padding: 0;
    margin: 0;
}

.substance-richtext li:before {
    content: "";
    display: block;
    position: absolute;
    background: #ccc;
    left: 8px;
    top: 0.355em;
    height: 10px;
    width: 6px;
}

.substance-richtext ol li:before {
    content: counter(li) ".";
    counter-increment: li;
    top: -1px;
    left: -4px;
    height: 24px;
    width: 24px;
    background: #ccc;
    font-weight: 500;
    line-height: 22px;
    text-align: center;
    color: #ccc;
    background: none;
}

.substance-richtext.richtext-flattened li:before {
    display: none;
}

.substance-richtext li p {
    margin-bottom: 0.9em;
}

.substance-richtext.richtext-flattened li p {
    margin: 0;
}

/* --- Image & video containers */
.substance-richtext .substance-image,
.substance-richtext .substance-video {
    background: #fff;
    width: calc(100% + 20px);
    margin: 1.2em -10px 1.2em -10px;
}

/* Floating images */
.substance-richtext > img, 
.substance-richtext *:not(.substance-image) img {
    max-width: 100%;
    float: left;
    margin: 0 0.9em 0.4em 0;
}

.substance-richtext.richtext-flattened img {
    display: none;
}

/* --- Quotations & special boxes */
.substance-richtext blockquote {
    margin: 0 0 1.2em -15px;
    padding-left: 15px;
    border-left: 2px solid rgba(35, 60, 81, 0.5);
    color: #666;
}

.substance-richtext blockquote *:last-child {
    margin-bottom: 0;
}

.substance-richtext.richtext-flattened blockquote {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
}
