:root{
    --schrift: #000000;
    --grau: #2e2e2e;
    --radius: 50px;
}

#oben{
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: none;
}

#oben.scroll{
    margin-top: 0;
    background: rgba(0, 0, 0, 75%);
    box-shadow: 0 0 5px var(--cookiemanhellgrau);
    padding: 10px 100px;
}

/* Logo */

#oben > .frame-type-textmedia .ce-gallery,
#oben > .frame-type-textmedia .ce-row:last-child img,
#oben.scroll > .frame-type-textmedia .ce-gallery .ce-row:last-child img,
#oben > .frame-type-textmedia .ce-row:first-child img {
    height: 175px;
    width: 175px;
}

#oben.scroll > .frame-type-textmedia,
#oben.scroll > .frame-type-textmedia .ce-gallery .ce-row:last-child img,
#oben.scroll > .frame-type-textmedia .ce-gallery .ce-row:first-child img {
    height: 120px;
    width: 120px;
}


#oben .frame-type-textmedia .ce-gallery .ce-row:last-child{
    position: absolute;
    opacity: 0;
    top: 0;
    z-index: 1;
}

#oben[data-toggled="on"] .frame-type-textmedia .ce-gallery .ce-row:last-child{
    opacity: 1;
}

#oben .frame-type-textmedia .ce-gallery{
    position: relative;
    margin-bottom: 0;
}

#oben .frame-type-textmedia .ce-gallery .ce-row{
    margin-bottom: 0;
}

/* Navi */
label[for="mobnav"] .mob_button {
    display: block;
    background-color: rgba(0, 0, 0, 0.70);
    border-radius: 100%;
    width: 80px;
    height: 80px;
}

label[for="mobnav"] .mob_button span {
    background-color: var(--schrift);
    height: 3px;
    left: calc(50% - 20px);
    margin-top: -1px;
    position: absolute;
    top: 50%;
    width: 40px;
    transition: all 0.3s ease 0.3s;
}

#mobnav:checked + label .mob_button span::before,
#mobnav:checked + label .mob_button span::after,
label[for="mobnav"] .mob_button span::after,
label[for="mobnav"] .mob_button span::before,
label[for="mobnav"] .mob_button span{
    background-color: var(--weiss);
    border-radius: 2px;
}

#mobnav:checked ~ ul.ebene1 {
    display: block;
    text-align: left;
    position: absolute;
    top: var(--hoben);
    right: 0;
    width: calc(100% - 40px);
    padding: 30px 20px 0px 20px;
    background: var(--navbg);
    max-height: calc(100vh - var(--hoben) - 80px);
    overflow: auto;
    max-width: 500px;
}

#oben .hauptnavi{
    margin-top: 0;
}

ul.ebene1 {
    display: none;
    box-shadow: 0px 3px 13px var(--cookiemanhellgrau);
}

#mobnav:checked ~ ul.ebene1{
    max-width: 100%;
    background: var(--schrift);
    color: var(--weiss);
    top: 0;
    text-align: center;
    padding-top: 165px;
    height: 100vh;
    padding-bottom: 100px;
}

ul.ebene1 > li > a::after {
    display: none;
}

ul.ebene1 > li,
ul.ebene1 > li:last-child {
    display: block;
    /* float: left;
    clear: both; */
    margin: 0 auto 5px;
    padding: 0;
    width: calc(100% - 40px);
    max-width: 850px;
    background: none;
    position: relative;
    border-bottom: none;
    cursor: pointer;
}

ul.ebene1 > li > a {
    display: inline-block;
    padding: 25px 0;
    background: none;
    color: var(--weiss);
    font-size: 35px;
    font-weight: 700;
    position: relative;
}

ul.ebene1 > li > a[target="_blank"]::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background: url(/fileadmin/cn_website/images/radmarathon/extern.svg) center center/contain no-repeat;
    right: -40px;
    left: initial;
    top: calc(50% - 8px);
}

ul.ebene1 > li > a::before{
    content: '';
    background: var(--rot);
    position: absolute;
    bottom: 0;
    left: calc(50% - 50px);
    width: 0;
    height: 3px;
    transition: var(--standardtransition);
}

@media (hover:hover){
    ul.ebene1 > li:hover > a::before,
    ul.ebene1 > li:focus > a::before{
        width: 100px;
    }
}

ul.ebene1 .navtoggle::before,
ul.ebene1 .navtoggle::after{
    background-color: var(--weiss);
    width: 15px;
    height: 3px;
    transform: rotate(0deg);
    left: 0;
}

ul.ebene1 .navtoggle::after {
    transform: rotate(-90deg);
    left: 0px;
}

ul.ebene1 > li.ifsub[data-toggled="on"] > a::after{
    transform: rotate(45deg);
}

ul.ebene1 > .ifsub > label {
    display: inline-block;
    position: initial;
    top: 10px;
    right: 20px;
    z-index: 1;
}

ul.ebene1 li:has(a[title="Arber Radmarathon"]) {
    margin-left: 0;
    background: var(--rot);
    border-radius: var(--radius);
}

.klappnavi {
    position: static;
    /* float: left;
    clear: both; */
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: none;
    border: none;
    overflow: hidden;
    transition: var(--standardtransition);
}

ul.ebene1 li > a:hover, ul.ebene1 li.ifsub:hover{
    text-decoration: none;
}

ul.ebene2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 25px;
    width: 100%;
    transition: var(--standardtransition);
    margin: 25px 0 !important;
    background-color: var(--schrift);
}

ul.ebene2 > li,
ul.ebene2 > li:first-child {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 1px solid var(--navischriftfarbe);
}

ul.ebene2 > li.ifsub{
    cursor: default !important;
}

ul.ebene2 > li > a {
    display: block;
    padding: 10px 0;
    color: var(--weiss);
}

ul.ebene2 > li.ifsub > a {
    font-size: 30px;
    font-weight: 700;
}

.ebene1 li.ifsub input[name="togglesub"]:checked + a + label + .klappnavi {
    display: block;
}

ul.ebene1 > .ifsub > label > .navtoggle, ul.ebene2 > .ifsub > label > .navtoggle {
    display: none;
}

ul.ebene3{
    margin-top: 20px !important;
}

ul.ebene2 > li > a,
ul.ebene3 > li > a{
    color: var(--weiss);
    font-size: 20px;
    padding: 0;
}

/* Infoleiste am rechten Rand */
#header .infoleiste .frame:first-child{
    font-size: 14px;
    position: absolute;
    right: 100px;
    top: 200px;
    z-index: 2;
    transition: var(--standardtransition);
}

#oben.scroll + #header .infoleiste .frame:first-child{
    position: fixed;
    right: 1%;
}

#oben.scroll + #header .infoleiste .frame:first-child .ce-gallery .ce-row{
    margin-bottom: 0;
}

#header .infoleiste .ce-gallery{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#header .infoleiste .ce-gallery a{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    text-decoration: none;
}

#header .infoleiste .image picture{
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#header .infoleiste .image picture .image-embed-item{
    margin-right: 10px;
}

#header .infoleiste .frame:first-child .image-caption{
    background-color: var(--weiss);
    padding: 8px 20px;
    border-radius: 20px;
    height: 24px;
    text-indent: -900px;
    margin: 5px -35px 5px 5px;
    transition: var(--standardtransition);
    color: var(--schrift);
    box-shadow: 0 0 5px var(--grau);
}

#header .infoleiste .frame:first-child .ce-row:hover .image-caption{
    text-indent: 0;
    padding-right: 40px;
}

/* Infoleiste in Navi */
#header .infoleiste .frame:last-child{
    position: fixed;
    top: 0;
    left: calc(50% - 300px);
    width: 600px;
    text-align: center;
    z-index: 5;
    font-size: 16px;
    font-weight: 400;
    padding-top: 25px;
    background: var(--schrift);
    display: none;
}

#oben[data-toggled="on"] + #header .infoleiste .frame:last-child{
    display: block;
}

#header .infoleiste .frame:last-child .ce-gallery {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
}

#header .infoleiste .frame:last-child .ce-gallery .ce-row{
    margin: 0;
}

#header .infoleiste .frame:last-child .ce-gallery a {
    flex-direction: row;
    color: var(--weiss);
}

/* Header */
#header{
    margin-bottom: 0;
}
#header::after{
    background-image: url(/fileadmin/cn_website/images/radmarathon/berge.svg);
    background-size: contain;
}
#header.sub::after{
    background-image: url(/fileadmin/cn_website/images/radmarathon/berge_header_schwarz.svg);
    background-size: contain;
}

#header.sub{
    margin-top: 0;
}
#header.sub .ce-bodytext a{
    white-space: nowrap;
}
/* Counter */
#header .frame-type-ce_counter{
    position: absolute;
    right: 100px;
    bottom: 50px;
    z-index: 5;
    text-shadow: 0 0 10px var(--schrift);
}

#oben[data-toggled="on"] + #header .frame-type-ce_counter{
    position: fixed;
}

.frame-type-ce_counter > .rahmen{
    display: flex;
    align-items: flex-end;
}

.frame-type-ce_counter header h2{
    color: var(--weiss);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 0;
    margin-right: 0px;
}

.tx-counter-layout-default .tx-cecounter-datewrap {
    padding: 0 !important;
}

.frame-type-ce_counter .tx-cecounter-datewrap > div {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 15px!important;
    color: var(--weiss) !important;
    font-weight: 500 !important;
    line-height: normal !important;
}

.frame-type-ce_counter .tx-cecounter-datewrap > div + div{
    border-left: 1px solid var(--weiss);
}

.frame-type-ce_counter .tx-cecounter-datewrap > div:last-child{
    padding-right: 0;
}

.tx-counter-layout-default .tx-cecounter-datewrap .number {
    font-size: 50px !important;
    display: block;
    text-align: center;
    padding: 0;
}

.tx-counter-layout-default .tx-cecounter-datewrap .label{
    font-size: 20px !important;
    display: block;
    text-align: center;
}

/* Headertext */
#header > .frame-type-textmedia .ce-bodytext{
    font-size: 40px !important;
    color: var(--schrift);
    z-index: 2;
    text-shadow: none;
    line-height: 1.4em;
    padding-bottom: 100px;
    bottom: 70px;
}

/*Unterseite Header button*/
#header.sub .image-embed-item,
#header.sub {
    max-height: 700px;
}
#header.sub > .frame-type-textmedia .ce-bodytext {
    bottom: 30px;
}

#header.sub .frame-type-ce_counter {
    bottom: 40px;
}

#header > .frame-type-textmedia .ce-bodytext strong{
    font-size: 50px;
}

#header > .frame-type-textmedia .ce-bodytext u{
    text-decoration: none;
    color: var(--rot);
}


#header > .frame-type-textmedia .ce-bodytext a{
    font-size: 26px;
    line-height: normal;
    border-radius: 50px;
    padding: 20px 55px;
    transition: var(--standardtransition);
    position: absolute;
    bottom: 0;
}

.zweispaltig {
    margin-bottom: 40px;
}

.zweispaltig .rechts a{
    position: relative;
    font-size: 26px;
    font-weight: 700;
}

#header > .frame-type-textmedia .ce-bodytext a::before,
.zweispaltig .rechts a::before{
    content: '';
    position: absolute;
    left: 15px;
    width: 39px;
    height: 30px;
    background: url(/fileadmin/cn_website/images/radmarathon/pfeil.webp) center center/contain no-repeat;
    opacity: 0;
    transition: var(--standardtransition);
}

@media (hover:hover){
    #header > .frame-type-textmedia .ce-bodytext a:hover,
    .zweispaltig .rechts a:hover{
        padding: 20px 60px;
        background: var(--rot);
        color: var(--weiss) !important;
    }
    
    #header > .frame-type-textmedia .ce-bodytext a:hover::before,
    .zweispaltig .rechts a:hover::before{
        opacity: 1;
    }
}

#header > .frame-type-textmedia .ce-gallery .image-embed-item{
    object-position: bottom;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/* Inhaltsbereich */

#inhaltsbereich > .frame {
    z-index: 1;
}

#inhaltsbereich > .frame-default .ce-bodytext {
    max-width: 900px;
}

.frame-layout-3,
.frame-bg_schwarz{
    background: var(--schrift);
    color: var(--weiss);
    padding: 35px 0 100px;
}


.frame-bg_schwarz.frame-space-before-none {
    margin-top: -100px !important;
    padding: 100px 0 !important;

}

h1{
    font-size: 70px;
    margin-top: 50px;
    font-weight: 900;
}

h2{
    font-size: 70px;
    font-weight: 900;
    margin-bottom: 10px;
}

h2.folgt, h3{
    font-size: 50px;
    font-weight: 600;
    margin-bottom: 0;
}

h1.zweizeilig{
    margin-bottom: 20px;
}

h2.zweizeilig{
    margin-bottom: 0;
}

h3.folgt{
    margin-top: 0;
}

#inhaltsbereich:not(.sub) .folgt{
    max-width: 900px;
}

#inhaltsbereich:not(.sub) .ce-headline-center.folgt {
    max-width: 100%;
}

.zahnrad{
    display: none;
}

#inhaltsbereich > .frame + .frame{
    margin-top: 100px;
}

.menu-mit-bildern {
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    margin-top: 80px;
}

.menu-mit-bildern li .box {
    background: var(--rot);
    color: var(--weiss);
    font-weight: 700;
}

@media (hover:hover){
    .menu-mit-bildern li a:hover .box {
        background: var(--weiss);
        color: var(--rot);
    }
}

#inhaltsbereich > .frame-training{
    background: url(/fileadmin/cn_website/images/radmarathon/hintergrund.webp) center center/cover no-repeat;
    padding-bottom: 250px;
    position: relative;
}

#inhaltsbereich > .frame-training::after{
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 420px;
    background: url(/fileadmin/cn_website/images/radmarathon/berge_weiss.svg) bottom left/contain no-repeat;
}

#inhaltsbereich > .frame-training > .rahmen {
    gap: 0;
    flex-direction: column;
    position: relative;
}

#inhaltsbereich > .frame-training .tx_cn-columns .row{
    display: flex;
    flex-direction: column-reverse;
}

#inhaltsbereich > .frame-training .tx_cn-columns .row .col-{
    max-width: 1200px;
    margin: 0 auto;
    float: none;
}

#inhaltsbereich > .frame-training .tx_cn-columns .row .col- .frame-type-shortcut > .rahmen{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 80px 250px
}

#inhaltsbereich > .frame-training .tx_cn-columns .row .col- .frame-type-shortcut > .rahmen > .frame-voll{
    grid-column: span 2 / span 2;
}

#inhaltsbereich > .frame-training .frame-type-shortcut > .rahmen .frame-default{
    text-align: center;
}

#inhaltsbereich > .frame-training .frame-type-shortcut > .rahmen .frame-default ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 70px;
    font-size: 24px;
    font-weight: 600;
}

#inhaltsbereich > .frame-training .frame-type-shortcut > .rahmen .frame-default ul li{
    padding-top: 80px;
    background: url(/fileadmin/cn_website/images/radmarathon/tour.svg) center top/65px auto no-repeat;
}

#inhaltsbereich > .frame-training .frame-type-shortcut > .rahmen .frame-default ul li:nth-child(2){
    background-image: url(/fileadmin/cn_website/images/radmarathon/strecke.svg);
}

#inhaltsbereich > .frame-training .frame-type-shortcut > .rahmen .frame-default ul li:nth-child(3){
    background-image: url(/fileadmin/cn_website/images/radmarathon/hoehe.svg);
}

#inhaltsbereich > .frame-training .frame-type-shortcut > .rahmen .frame-default .ce-bodytext a{
    margin-top: 50px;
    padding: 20px;
    border: 2px solid var(--rot);
    border-radius: var(--radius);
    font-size: 30px;
    font-weight: 900;
    display: block;
    transition: var(--standardtransition);
}

@media (hover:hover){
    #inhaltsbereich > .frame-training .frame-type-shortcut > .rahmen .frame-default .ce-bodytext a:hover{
        color: var(--weiss);
    }
}

#inhaltsbereich > .frame-training .owl-dots {
    position: relative;
    top: -0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 100px 0;
}

#inhaltsbereich > .frame-training .owl-carousel button.owl-dot{
    background: none;
    font-weight: 700;
}

#inhaltsbereich > .frame.frame-berge_w,
#inhaltsbereich > .frame.frame-berge_s{
    position: relative;
    margin-top: 350px;
}

.frame-berge_w::before, .frame-berge_s::before{
    content: '';
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 100%;
    height: 420px;
    background: url(/fileadmin/cn_website/images/radmarathon/berge_weiss.svg) bottom left/contain no-repeat;
}

.frame-berge_s::before{
    background-image: url(/fileadmin/cn_website/images/radmarathon/berge_schwarz.svg);
}

.owl-prev {
    left: 0;
    top: 250px;
}

.owl-next{
    right: 0;
    top: 250px;
}

.frame-training .owl-nav{
    filter: brightness(0) invert(1);
}

a.link-phone,
a.link-mail{
    padding-left: 40px;
    background: url(/fileadmin/cn_website/images/radmarathon/phone.svg) left center/contain no-repeat;

}

.frame-layout-3 a.link-mail,
.frame-layout-3 a.link-phone{
    color: var(--weiss);
}

a.link-mail{
    background-image: url(/fileadmin/cn_website/images/radmarathon/plane.svg);
}

.frame-type-html body{
    margin-top: -60px;
}

#inhaltsbereich:not(.sub) .frame-type-html{
    margin-top: 0;
    padding-bottom: 60px;
}

#inhaltsbereich:not(.sub) .frame-type-html h2{
    margin-bottom: 60px;
}

.frame-type-html{
    position: relative;
}

.frame-type-html html{
    margin-top: -60px !important;
}

.frame-type-html{
    text-align: right;
}

.frame-type-html p{
    margin-top: -25px;
}
#inhaltsbereich.sub .frame-type-html p{
    margin-top: 0;
}

a.weiter{
    border: 3px solid var(--grau);
    padding: 20px 15px 20px 70px;
    border-radius: 40px;
    color: var(--weiss);
    background: var(--schrift);
    position: relative;
    display: inline-block;
}

a.weiter::before {
    content: '';
    position: absolute;
    left: 20px;
    top: calc(50% - 15px);
    width: 39px;
    height: 30px;
    background: url(/fileadmin/cn_website/images/radmarathon/pfeil.webp) center center/contain no-repeat;
}


.frame-voll.frame-layout-3 .ce-bodytext:has(a.weiter){
    margin-top: -60px;
}
/* Touren */
.zweispaltig{
    display: flex;
}

.links,
.rechts{
    width: 50%;
}

.links > .frame > .rahmen,
.rechts > .frame > .rahmen{
    display: flex;
    flex-direction: column;
}

.links h1{
    margin-top: 0;
}

.links .ce-bodytext{
    margin-bottom: 100px;
}

.links .ce-gallery{
    width: 100%;
}

.links .ce-gallery .ce-row{
    display: flex;
    gap: 90px;
}

.links .ce-gallery .ce-row .ce-column{
    margin: 0
}

.links .image-caption{
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-top: 20px;
    width: max-content;
}

.rechts .ce-gallery{
    margin-bottom: 95px;
}

/* Trikots */
.frame-trikots .ce-gallery{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    align-items: center;
    gap: 40px;
}

.frame-trikots .ce-gallery .image{
    position: relative;
}

.frame-trikots .ce-gallery .image-caption{
    background: rgba(0, 0, 0, 50%);
    color: var(--weiss);
    padding: 10px 15px;
    width: calc(100% - 30px);
    position: absolute;
    bottom: 0;
    /* border: 1px solid var(--rot) */
}

.frame-trikots .ce-gallery .ce-row{
    margin: 0
}

.frame-trikots .ce-bodytext{
    max-width: 800px;
}
/* Footer */
#footer{
    margin-top: 0; 
    padding: 0;
    background: var(--schrift);
}

#footer::before{
    display: none;
}

#footer > div:last-child.frame-type-textmedia{
    padding: 50px 0;
    margin-top: 0;
}

.frame-bg_schwarz.frame-type-html h2,
.frame-berge_s.frame-style-3column h2 {
    font-weight: 500 !important;
}



/*accordion*/
#inhaltsbereich > .frame-berge_s.frame-style-accordion .cnmc-accordion,
#inhaltsbereich > .frame-default .cnmc-accordion, #inhaltsbereich > .frame-default .cn_multicontent_teaser, #inhaltsbereich > .frame-default .ce-bodytext {
    max-width: 90%;
    margin: 20px 0 20px 0;
}

.ui-accordion-content {
    max-width: 900px;
}

.ui-accordion-content h2, .ui-accordion-content h3{
    font-size: 24px;
    margin-top:50px;
    font-weight: 700;
}


.ui-accordion-header {
    font-size: 24px;
    border-radius: 25px;
    padding: 20px 15px;
}



.frame-berge_s.frame-style-accordion {
    margin-top: 450px !important;
}