/* STYLES FOR CANTONALE BERNE JURA *** DUNKEL.CC */

/* Legal Disclaimer
These Fonts are licensed only for use on these domains: cantonale.ch
It's illegal to donwload or use them on other websites.
*/

/*
	NEWS ROT RGB #F98A76 / rgba(249, 139, 118, 1)
	HELLES GRAU #F1F1F0 / rgba(241, 241, 240, 1)
	MITTLERES GRAU #CECECC / rgba(206, 206, 204, 1)
	KUPFER #B57B25 / rgba(181, 123, 37, 1)
*/

/**************** RESET STYLES IS A GOOD THING *************************************************************************/
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figure,
figcaption,
hgroup,
menu,
footer,
header,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
}

a img {
    border: 0;
}
/*****************************************************************************************************/
/**************** TYPOGRAPHY *************************************************************************/
@font-face {
    font-family: "OTMono";
    src:
        url("/fonts/OTAlphaMono-Book.woff") format("woff"),
        url("/fonts/OTAlphaMono-Book.woff2") format("woff2");

    font-style: normal;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    /*reset for mobile browsers */
    font-weight: normal;
}
/*****************************************************************************************************/

* {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    box-sizing: border-box; /* Opera/IE 8+ */
    font-weight: normal;
    outline: none;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "OTMono";
    counter-reset: number;
    height: 100%;
    width: 100%;
}

.uppercase {
    text-transform: uppercase;
}

html {
    scroll-behavior: smooth;
}

[id],
.miniList,
.miniList h2 {
    scroll-margin-top: var(--header-height);
}

body {
    overflow-x: hidden;
}

.preheader .logo {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    @media (min-width: 768px) {
        padding-left: 50px;
        padding-right: 50px;
        padding-top: 50px;
    }
}
.preheader .logo img {
    display: block;
    min-width: 280px;
    width: 33%;
    @media (min-width: 768px) {
        max-width: 800px;
    }
}
main {
    min-height: 100%;
    background: yellow;
}

::selection {
    background: rgba(249, 139, 118, 0.8);
}
::-moz-selection {
    background: rgba(249, 139, 118, 0.8);
}
img::selection {
    background: transparent;
}
img::-moz-selection {
    background: transparent;
}

#hideNs {
    display: none;
}

#closeNs {
    width: 20px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    display: none;
}

#hideNs:not(:checked) ~ .noscript #closeNs {
    display: block;
}

#hideNs:checked ~ .noscript {
    display: none;
}

.noscript {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    z-index: 10000;
    text-align: center;
    padding: 20px;
    font-size: 0.8em;
    -webkit-animation: noscr 5s; /* Chrome, Safari, Opera */
    animation: noscr 5s;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes noscr {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Standard syntax */
@keyframes noscr {
    from {
        background: red;
    }
    to {
        background: yellow;
    }
}

.noscript * {
    color: white;
}

.noscript p {
    width: 60%;
    margin: 0 auto 20px;
}

.noscript a {
    text-decoration: underline;
}

.rt a {
    text-decoration: underline;
}

body {
    font-size: 100%;
    line-height: 1.3;
}

h1 {
    font-size: 2.3em;
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 2em;
    margin: 0 0 25px 0;
    padding: 0;
}

p,
li,
.time,
aside {
    font-size: 1.49999999em;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: black;
}

strong {
    font-weight: normal; /*  text-decoration: underline; */
}

figure {
    margin: 0;
    padding: 0;
}

#mainnav li {
    font-size: 3em;
}

#news {
    background: rgba(249, 139, 118, 1);
    background: #f98a76;
    color: black;
}

#articleNews {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding: 50px;
}

.pages {
    padding: 50px;
}

.content-wrapper {
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
}

.pages .circuitBar span {
    display: inline-block;
    vertical-align: middle;
}
.pages .circuitBar span:first-child {
    margin-right: 10px;
}
.pages .circuitBar .arrow {
    width: 200px;
    height: 2px;
    background: black;
    margin: 0 10px;
    position: relative;
}
.pages .circuitBar .arrow:after {
    content: ".";
    font-size: 0;
    position: absolute;
    right: 0;
    width: 10px;
    height: 10px;
    display: block;
    border: 2px solid black;
    border-left: 0;
    border-bottom: 0;
    transform-origin: top right;
    transform: rotate(45deg) translate(2px, -0.8px);
}
.pages .circuitBar .number {
    border: 2px solid black;
    border-radius: 100%;
    width: 36px;
    height: 36px;
    text-align: center;
}

.pages .info.half {
    float: left;
    width: 50%;
    padding-right: 20px;
    margin-bottom: 25px;
}

.pages .info * {
    font-size: 1rem;
}
.pages .info table {
    width: 100%;
    margin: 0 0 25px;
}
.pages .info table tr:nth-child(2n) {
    background: none;
}
.pages .info table tr td:first-child {
    width: 1%;
    white-space: nowrap;
}
.pages .info table tr td {
    padding-left: 0;
    vertical-align: top;
}
.pages .info + p {
    clear: both;
}

main {
    position: relative;
}

#mainHead {
    width: 100%;
    /* 	max-width: 1200px; */
    padding: 50px 50px 20px 50px;
    background: white;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    z-index: 9999;
    transition: background 0.2s;
}

#mainHead > * {
    margin: 0 auto;
    max-width: 1100px;
}

.preheader h1 {
    font-size: 1.5em;
    margin-top: 0.75em;
}

.programm {
    background: white;
}

#konzept {
    background: rgba(241, 241, 240, 1);
    background: #f1f1f0;
}

#informationen {
    background: rgba(255, 255, 0, 1);
}
/* #informationen a:hover, #informationen h2:hover, #informationen header:hover, #informationen article:hover,  #informationen header article {color: white;} */

/************** INTRO *****************/
#intro {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    background: rgba(240, 240, 240, 1);
    background-position: center center;
    display: table;
    padding: 20%;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover !important;
}

#mainHead aside {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    #mainHead aside {
        position: absolute;
        right: 50px;
        top: 50px;
        text-align: right;
    }
    #mainHead aside .social-media-container {
        display: flex;
        flex-direction: row-reverse;
    }
}

@media (800px <= width <= 1700px) {
    #mainnav ul {
        max-width: min(900px, 100vw - 400px);
    }
}

aside .social-media-container {
    list-style-type: none;
}

aside .social-media-container li {
    font-size: 100%;
}

aside .social-media-container li {
    display: flex;
}

aside .social-media-container li:after {
    content: "/";
    margin-left: 5px;
    margin-right: 5px;
}

aside .social-media-container li:first-of-type {
    margin-left: 0;
}

aside .social-media-container li:last-of-type {
    margin-right: 0;
}

aside .social-media-container li:last-of-type:after {
    display: none;
}

#intro h1 {
    text-transform: uppercase;
    color: white;
    display: table-cell;
    vertical-align: middle;
    height: 100%;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: 1s;
    position: relative;
    z-index: 1;
}

#intro img,
picture {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#intro video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
}

@supports (object-fit: cover) {
    #intro video {
        width: 100%;
        height: 100%;
    }

    #intro .cover {
        object-fit: cover;
    }

    #intro .contain {
        object-fit: contain;
    }
}

#intro h1:hover,
a[href]:hover {
    color: #cececc;
    color: rgba(206, 206, 204, 1);
}

a[href] {
    transition: 1s;
}

a[target="_blank"] {
    background-image: url(/public/img/external-link.svg);
    background-repeat: no-repeat;
    background-position: 100% 5px;
    background-size: 8px;
    padding-right: 15px;
}

/************* NAVIAGTION **************/
#mainnav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mainnav li {
    float: left;
    margin-right: 20px;
}

#mainnav li a {
    color: black;
    text-decoration: none;
    transition: 0.2s;
}

aside .login {
    display: block;
    background: none;
    padding: 0;
    /* color: #B57B25; */
}

#mainnav li a:hover {
    color: rgba(200, 200, 200, 1);
}

.lang {
    text-transform: uppercase;
}

.lang.active {
    cursor: default;
    pointer-events: none;
}

a.active {
    color: rgba(206, 206, 204, 1);
}

/*************** ARTICLES ****************/

.article {
    overflow: hidden;
    position: relative;
}

.p-article {
    padding: 0 80px;
}

.article p img {
    max-width: 60%;
}

.articleHead {
    margin-left: -80px;
    width: calc(100% + 160px);
    padding-left: 80px;
    border-top: 3px solid black;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    padding-top: 0.25em;
}

.articleHead .time {
    font-size: 2em;
    display: flex;
}

.articleHead h2 {
    transition: 0.2s;
}

.articleHead:hover h2 {
    color: rgba(0, 0, 0, 0.5);
}

.article:last-of-type {
    border-bottom: 3px solid black;
}

.article:last-of-type .articleHead {
    padding-bottom: 3px;
}

.programm .articleHead:before {
    counter-increment: number; /* Increment the section counter*/
    content: counter(number); /* Display the counter */
}

.articleHead:before {
    font-size: 2em;
}

.programm .articleHead:before {
    grid-row: 1/3;
}

.article[state="true"] {
    overflow: visible;
    padding-bottom: 50px;
}

/*
.article[state=true]:after{
	content: ".";
	color: rgba(0,0,0,0);
	background: url(/img/kreuz.svg);
	background-size: cover;
	background-repeat: no-repeat;
	width: 25px;
	height: 25px;
	font-size: 2em;
	position: absolute;
	top: 10px;
	right: 10px;
	pointer-events: none;
}
*/

.article[state="true"] .articleHead {
    background: url(/public/img/kreuz.svg);
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-position: top 10px right 10px;
}

.articleHead > * {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.programm .articleHead {
    display: grid;
    grid-template-columns: 30px auto;
    column-gap: 0;
    padding-left: 0;

    @media only screen and (min-width: 1023px) {
        grid-template-columns: 55px 1fr auto; /* 80 - 25 */
        column-gap: 25px;
    }
}

.article p {
    margin-top: 25px;
}

.article p:first-of-type {
    margin-top: 50px;
}

.article .desc {
    margin-bottom: 50px;
}

.article h2 {
    margin: 0;
}

.article .miniList ul {
    margin: 0;
    padding: 20px 0;
    list-style: none;
}

.article .miniList ul li {
    padding: 0;
}

.article hr {
    border: none;
    border-top: 1px solid black;
}

.article table {
    max-width: 100%;
    border-collapse: collapse;
    margin: 50px 0;
}

.article td {
    padding: 0 10px;
    font-size: 1.4999999em;
}

.article tr:nth-child(2n) {
    background-color: rgba(0, 0, 0, 0.2);
}

.article ul:empty {
    padding: 0;
}

.article ul {
    padding: 0;
    padding-left: 22px;
}

.article ul li {
    padding-left: 10px;
}

.article ol {
    padding: 0;
    padding-left: 32px;
}

.article .miniList {
    overflow: hidden;
    padding-bottom: 50px;
}

.article del {
    color: rgba(0, 0, 0, 0.8);
}

.article em:before {
    content: "«";
}

.article em:after {
    content: "»";
}

.miniList ul.liFloat li {
    float: left;
    width: 33%;
}

.article > figure {
    width: 80%;
    /* 	text-align: center; */
    margin-top: 50px;
}

.article > figure img,
.article > figure figcaption {
    width: 100%;
    text-align: center;
}

.article > figure figcaption {
    margin-top: 25px;
    width: 90%;
    text-align: left;
    display: inline-block;
}

#footer {
    margin-top: 50px;
    position: relative;
}

#footer p {
    float: left;
}

#footer #backTop {
    float: right;
    font-size: 1.499999em;
    color: black;
    text-decoration: none;
}

/******* SPONSOREN ********/
figure.sponsors {
    width: 100%;
}
figure.sponsors a {
    background: none; /* border-bottom: solid 1px black; */
    margin-left: -5px;
    display: inline-block;
    width: 25%;
    padding: 50px 20px;
    position: relative;
}
figure.sponsors a:nth-child(4n):before {
    content: ".";
    font-size: 0;
    width: 400%;
    right: 0;
    height: 1px;
    background: black;
    display: block;
    position: absolute;
    bottom: 0;
}
figure.sponsors a:last-child:before {
    display: none !important;
}
/* figure.sponsors a:nth-last-child(-n + 4) {border:none;} */
figure.sponsors img {
    width: 100%;
    transition: 0.4s;
}

/* figure.sponsors a:hover img{-webkit-filter: invert(50%);} */
figure.sponsors a:hover img {
    -webkit-filter: brightness(0) invert(1);
}

/**************** GALLERY ***************/

/*
.hasGallery[state=true]{
	padding-top: 80vh;
}
*/

/* i'm sorry for this util */
.w-reset {
    --offset: calc(-1 * (50px));
}
.p-article .w-reset {
    --offset: calc(-1 * (50px));
}
.w-reset {
    margin-left: var(--offset);
    margin-right: var(--offset);
}

.gallery {
    margin-top: 20px;
    max-height: 80vh;
    width: 100%;
    --swiper-theme-color: #fff;
    --swiper-pagination-bullet-size: 10px;
    --swiper-pagination-bullet-inactive-opacity: 1;
    --swiper-pagination-bullet-horizontal-gap: 10px;
}

.gallery figure {
    max-width: 40vw;
    width: auto;
}

.gallery figure img {
    width: 100%;
    max-height: 100%;
}

.gallery figcaption {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 45px;
}

.gallery + p {
    margin-top: 0 !important;
}

.documents {
    display: grid;
    gap: 25px;
    margin-top: 25px;
}
.documents .doc {
    display: flex;
    gap: 15px;
}
.thumbnail {
    width: 34%;
    max-width: 200px;
}
@media (width >= 768px) {
    .thumbnail {
        width: 72%;
        max-width: 225px;
    }
}
.thumbnail img {
    width: 100%;
}
.doc-body {
    display: flex;
    gap: 1rem;
}
.doc-body p:first-of-type {
    margin-top: 0px;
}
.doc-body a {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 15px;
}
.documents .doc a img {
    max-height: 1em;
}

/**************** CLEARFIX ***************/
.cf:after {
    content: ".";
    opacity: 0;
    visibility: hidden;
    color: transparent;
    color: rgba(0, 0, 0, 0);
    display: block;
    height: 0;
    width: 0;
    clear: both;
}

/************* S LAYOUT FOR NON MOBILE ******************************************************************************/
/**********************************************************************************************************************/

@media only screen and (min-width: 1023px) {
    .documents {
        gap: 50px;
        margin-top: 50px;
        grid-template-columns: 1fr 1fr;
    }

    .doc-body a {
        margin-top: 25px;
    }
}

/************* L LAYOUT FOR BIG SCREENS ******************************************************************************/
/**********************************************************************************************************************/
@media only screen and (min-width: 1400px) {
    h1 {
        font-size: 3em;
    }
}

/******************** TABLET WIDTH ************************************************************************************/
/**********************************************************************************************************************/

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    body {
        font-size: 80%;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.8em;
    }
    #mainnav ul li {
        float: none;
        clear: both;
    }
    .articleHead {
        padding: 5px 0 5px 30px;
    }
    /* .articleHead h2 {width: auto;} */
    .articleHead .time {
        font-size: 1.8em;
    }
    .articleHead:before {
        font-size: 1.8em;
        bottom: 2.5px;
    }

    .article:last-of-type .articleHead {
        padding-bottom: 5px;
    }
    /******* SPONSOREN ********/
    figure.sponsors a {
        width: 50%;
    }
    /*
figure.sponsors a:nth-last-child(-n + 4) {border-bottom: solid 1px black !important;}
	figure.sponsors a:nth-last-child(-n + 2) {border:none !important;}
*/
    figure.sponsors a:nth-child(2n):before {
        content: ".";
        font-size: 0;
        width: 200%;
        right: 0;
        height: 1px;
        background: black;
        display: block;
        position: absolute;
        bottom: 0;
    }

    .miniList ul.liFloat li {
        width: 50%;
    }
}

/**************************** MOBILE WIDTH ****************************************************************************/
/**********************************************************************************************************************/

@media only screen and (min-width: 0px) and (max-width: 767px) {
    *:hover {
        color: initial;
        background: initial;
    }

    body {
        font-size: 62%;
    }

    h1 {
        font-size: 2.5em;
    }

    #intro {
        padding: 0;
    }
    #intro h1 {
        width: 100%;
        font-size: 1.8em;
    }

    #mainnav ul li {
        float: none;
        font-size: 2.5em;
    }

    .pages .info.half {
        float: none;
        clear: both;
        width: 100%;
        padding: 0;
        margin-bottom: 25px;
    }

    .pages .circuitBar .number {
        height: 24px;
        width: 24px;
    }

    .preheader {
        margin-bottom: 0 !important;
    }

    #articleNews {
        width: 100%;
        max-width: initial;
        padding: 25px;
    }

    [id] {
        scroll-margin-top: 0;
    }

    #mainHead {
        position: initial !important;
    }

    .pages,
    #mainHead {
        padding: 20px;
    }

    .w-reset {
        --offset: calc(-1 * (20px));
    }

    .articleHead {
        padding: 10px 0;
        padding-left: 40px;
        margin: 0;
        width: 100%;
        border-top: 2px solid black;
    }

    .article:last-of-type .articleHead {
        padding-bottom: 13px;
    }

    #konzept .articleHead,
    #informationen .articleHead,
    #circuit-kunsttour .articleHead {
        padding-left: 0;
    }

    .miniList ul.liFloat li {
        float: none;
        clear: both;
        width: 100%;
    }

    .pages {
        padding: 30px 20px;
    }

    .article:last-of-type {
        border-bottom: 2px solid black;
    }

    .programm .articleHead h2 {
        width: 100%;
    }

    .article .miniList {
        padding: 0;
    }

    .article[state="true"]:after {
        width: 12.5px;
        height: 12.5px;
    }

    .p-article {
        padding: 0;
    }

    .time {
        font-size: 2em;
    }

    .gallery {
        padding-top: 25px;
    }

    .gallery figure {
        max-width: 60vw;
    }

    /******* SPONSOREN ********/
    figure.sponsors a {
        width: 50%;
    }
    /*
	figure.sponsors a:nth-last-child(-n + 4) {border-bottom: solid 1px black !important;}
	figure.sponsors a:nth-last-child(-n + 2) {border:none !important;}

*/
    figure.sponsors a:nth-child(2n):before {
        content: ".";
        font-size: 0;
        width: 200%;
        right: 0;
        height: 1px;
        background: black;
        display: block;
        position: absolute;
        bottom: 0;
    }
    .miniList ul.liFloat li {
        width: 100%;
    }
}

/**************************** HIDE AT SMALL BP ****************************************************************************/
/**********************************************************************************************************************/
.hide-at-small-bp {
    display: block;
}

.hide-at-large-bp {
    display: none;
}

@media screen and (max-width: 800px) {
    .hide-at-small-bp {
        display: none;
    }

    .hide-at-large-bp {
        display: block;
    }
}
