:root {
    --light-blue: #A7DDFF;
    --mid-blue: #232038;
    --dark-blue: #19162D;
    --blue: #3372BC;
    --green: #72BD9F;
    --black: #000000; 
    --white: #ffffff;
    --gray: #4E4F63;
}

body {
    background-color: var(--light-blue);
}

.wrapper {
    min-height: calc(100% - 4vw);
    height: auto;
    width: calc(100% - 4vw);
    background: var(--dark-blue);
    position: absolute;
    left: 50%;
    top: 2vw;
    margin-bottom: 2vw;
    transform: translate(-50%, 0);
    border-radius: 22px;
    -webkit-box-shadow: 2px 1px 25px 5px rgba(0,0,0,0.3);
    box-shadow: 2px 1px 25px 5px rgba(0,0,0,0.3);
    max-width: 1900px;
}

.title-bar {
    position: relative;
    left: 0;
    top: 0;
    width: calc(100% - 44px);
    padding: 0 22px;
    height: 3rem;
    background: var(--mid-blue);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.circle {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: var(--gray);
    position: relative;
    margin-right: 10px;
    float: left;
}

.circle.green {
    background: var(--green);
}

.title-bar-text {
    font-size: .7rem;
    margin-right: 1rem;
    letter-spacing: 1px;
}

.content {
    position: relative;
    float: left;
    width: calc(100% - clamp(2rem, 4vw, 6rem) - clamp(2rem, 4vw, 6rem));
    overflow: hidden;
    padding: clamp(2rem, 4vw, 6rem);
    display: flex;
    flex-direction: row;
    min-height: calc(92vh - 2rem - clamp(2rem, 4vw, 6rem) - clamp(2rem, 4vw, 6rem));
    height: auto;
}

.left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 55%;
}

.buttons {
    position: relative;
    float: left;
    width: 100%;
}

a.button {
    padding: 0px 20px;
    border: 1px solid var(--blue);
    border-radius: 25px;
    position: relative;
    float: left;
    height: 30px;
    display: flex;
    align-items: center;
    margin-left: 40px;
    font-family: 'VT323';
    font-size: 22px;
    letter-spacing: 1px;
    margin-right: clamp(1rem, 2vw, 2rem);
    transition: .5s all ease;
}

a.button:hover {
    background: var(--blue);
}

a.button.world {
    background: var(--green);
    border-color: var(--green)
}

a.button.world:hover {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
}

a.button.world::before {
    content: '';
    height: 32px;
    width: 32px;
    background: var(--green);
    position: absolute;
    float: left;
    border-radius: 50%;
    background-image: url('/static/images/globe.svg');
    left: -40px;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    transition: .5s all ease;
}

a.button.world:hover::before {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
}

a.button.info {
    background: var(--blue);
    border-color: var(--blue)
}

a.button.info:hover {
    background: var(--light-blue);
    border-color: var(--light-blue);
}

a.button.info::before {
    content: '';
    height: 32px;
    width: 32px;
    background: var(--blue);
    position: absolute;
    float: left;
    border-radius: 50%;
    background-image: url('/static/images/info.svg');
    left: -40px;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    transition: .5s all ease;
}

a.button.info:hover::before {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
}

a.button.login::before {
    content: '';
    height: 32px;
    width: 32px;
    position: absolute;
    border: 1px solid var(--blue);
    float: left;
    border-radius: 50%;
    background-image: url('/static/images/login.svg');
    left: -40px;
    background-size: 61%;
    background-repeat: no-repeat;
    background-position: center;
    transition: .5s all ease;
}

a.button.login:hover::before {
    background-color: var(--blue);
}

a.button.faq::before {
    content: '';
    height: 32px;
    width: 32px;
    border: 1px solid var(--blue);
    position: absolute;
    float: left;
    border-radius: 50%;
    background-image: url('/static/images/faq.svg');
    left: -40px;
    background-size: 28%;
    background-repeat: no-repeat;
    background-position: center;
    transition: .5s all ease;
}

a.button.faq:hover::before {
    background-color: var(--blue);
}

h1 {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: min(max(3rem, 4vw), 5rem);
    line-height: 1;
}

p {
    line-height: 1.5;
}

.buttons.row-two {
    margin-top: 1.5rem;
}

.logos {
    position: relative;
    float: left;
    display: flex;
    align-items: center;
}

.logos img {
    max-width: clamp(6rem, 8vw, 8rem);
    height: clamp(2rem, 4vw, 4rem);
    margin-right: 3rem;
    object-fit: contain;
}

img.earth {
    width: 80%;
    max-height: 100%;
    object-fit: contain;
}

.right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble {
    position: absolute;
    width: clamp(10rem, 14vw, 14rem);
    height: clamp(10rem, 14vw, 14rem);
    background: var(--green);
    border-radius: 50%;
    top: 4rem;
    right: clamp(4rem, 7vw, 14rem);
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1.25;
}

.day {
    font-size: min(max(1.5rem, 2vw), 3rem);
    letter-spacing: -4px;
}

.month {
    font-size: min(max(1.1rem, 1.2vw), 1.25rem);
    letter-spacing: 1px;
}

.year {
    font-size: min(max(1.5rem, 1.5vw), 2rem);
    letter-spacing: 1px;
}

a.back h1 {
    font-size: min(max(1.75rem, 3vw), 4rem);
}

a.back h1::before {
    content: '';
    position: relative;
    float: left;
    height: clamp(2rem, 4vw, 4rem);
    width: clamp(2rem, 4vw, 4rem);
    background-size: contain;
    background-image: url('/static/images/back.svg');
    margin-right: clamp(2rem, 3vw, 3rem);
}

.content.klasseninfos, .content.faq {
    flex-direction: column;
}

.klassenuebersicht {
    position: relative;
    float: left;
    width: 60%;
}

.klasse {
    position: relative;
    padding: 1rem 0;
    border-bottom: 1px solid var(--white);
    float: left;
    width: 100%;
}

.klasse::after {
    content: '';
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    background-image: url('/static/images/arrow-right.svg');
}

.klassenuebersicht a {
    position: relative;
    float: left;
    width: 100%;
}

span.disclaimer {
    font-size: 0.6rem;
    font-size: min(max(0.6rem, 0.7vw), 0.8rem);
}

input#quicksearch {
    box-shadow: none;
    border: 1px solid var(--blue);
    border-radius: 26px;
    padding: 10px 20px;
    background: none;
    position: relative;
    float: left;
    outline: none;
    color: var(--white);
}

.filter {
    position: relative;
    float: left;
    width: 60%;
}

.button-group a {
    border: 1px solid var(--blue);
    border-radius: 26px;
    padding: 10px 20px;
    background: none;
    position: relative;
    float: left;
    outline: none;
    color: var(--white);
    margin-bottom: 10px;
    margin-right: 10px;
    font-family: 'VT323';
    letter-spacing: 1px;
    transition: .5s all ease;
}

.button-group a.current, .button-group a:hover {
    background: var(--blue);
}

.gemeinde {
    position: relative;
    float: left;
    width: 100%;
}

.gemeinde h3 {
    float: left;
    position: relative;
    width: 100%;
}

.accordion {
    position: relative;
    float: left;
    width: 60%;
}

.accordion__item {
}
.accordion__item.is-open {
  padding-bottom: 30px;
}
.accordion__title {
  position: relative;
  padding: 1rem 0;
  cursor: pointer;
  padding-right: 45px;
  justify-content: space-between;
  border-bottom: solid 1px var(--white);
}
.accordion__title:after {
  position: absolute;
  content: '';
  right: 0;
  background-image: url(../images/arrow-right.svg);
  background-size: contain;
  background-repeat: no-repeat;
  top: 50%;
  transform: translate(0, -50%);
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  width: 2rem;
  height: 2rem;
}
.is-open .accordion__title:after {
  transform: translate(0, -50%) rotate(90deg);
}
.accordion__body {
  width: 100%;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-in-out;
}
.accordion__body .grid {
  column-gap: 2em;
  margin: 2em;
}
.accordion__content {
  padding: 1rem;
}
.accordion__title p {
  white-space: nowrap;
}

.x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.content.klassendetail {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.klasse-liveticker {
    position: relative;
    float: left;
    width: clamp(14rem, 20vw, 20rem);
    padding: 0 clamp(1rem, 2vw, 2rem);
    border-left: 1px solid var(--white);
}

.separator {
    position: relative;
    float: left;
    width: 100%;
    height: 1px;
    background: var(--white);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.lehrperson p {
    margin-top: 0;
}

span.big {
    font-size: min(max(1.75rem, 3vw), 3rem);
    margin-right: 10px;
}

img.klassenfoto {
    position: relative;
    float: left;
    max-width: clamp(25rem, 35vw, 35rem);
    clear: both;
}

.foto {
    position: relative;
    float: left;
    width: 100%;
}

.lehrpersonen {
    position: relative;
    float: left;
    width: 100%;
}

.overview {
    height: 100%;
    float: left;
    overflow: scroll;
}

.overview h1 {
    font-family: 'Roboto Mono';
    font-size: min(max(2rem, 2vw), 3rem);
}

.overview h2 {
    font-family: 'Roboto Mono';
    font-size: 1.5rem;
}

.overview p {
    font-family: 'Roboto Mono';
    font-size: 0.8rem;
}

.etappen {
    position: relative;
    display: block;
    float: left;
    width: 100%;
}
.etappen .circle {
    margin-top: 5px;
}

.etappe {
    display: grid;
    grid-template-columns: 25px 1fr;
    margin-bottom: 8px;
}

span.legende {
    position: relative;
    display: block;
    float: left;
    font-size: min(max(0.6rem, 0.7vw), 0.8rem);
}

span.legende .circle {
    margin-top: 4px;
    margin-left: 10px;
    height: 10px;
    width: 10px;
    margin-right: 7px;
}



@media only screen and (max-width: 1500px) {
    .left, .right {
        width: 50%;
    }

    img.earth {
        width: 100%;
    }
}

@media only screen and (max-width: 1200px) {
    .filter {
        width: 85%;
    }

    .klassenuebersicht {
        width: 85%;
    }

    .accordion {
        width: 85%;
    }
}

@media only screen and (max-width: 900px) {
    body {
        overflow: auto;
        background: var(--light-blue);
    }

    .wrapper {
        height: auto;
        top: 0;
        transform: translate(-50%, 0);
        margin-top: 2vw;
        margin-bottom: 2vw;
        min-height: calc(100% - 4vw);
    }

    .content {
        flex-direction: column-reverse;
        height: auto;
    }

    .left, .right {
        width: 100%;
    }

    .content-bottom {
        margin-top: 2rem;
    }

    img.earth {
        width: 100%;
        margin: clamp(5rem, 10vw, 10rem) 0 clamp(2rem, 6vw, 6rem);
    }

    .content.klassendetail {
        flex-direction: column;
    }

    img.klassenfoto {
        width: 100%;
    }

    .klasse-liveticker {
        border-left: none;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        border-top: 1px solid var(--white);
        margin-top: 3rem;
    }

    .klassenuebersicht {
        width: 100%;
    }

    .filter {
        width: 100%;
    }
}

@media only screen and (max-width: 800px) {

    .title-bar-text {
        margin-right: 0;
        text-align: right;
    }

    .circles {
        position: relative;
        float: left;
        display: flex;
        margin-right: 1rem;
    }

    .circle {
        height: 12px;
        width: 12px;
        margin-right: 8px;
    }

    .bubble {
        top: clamp(2rem, 4vw, 4rem);
        right: clamp(2rem, 5vw, 12rem);
    }

    a.button {
        margin-bottom: 1rem;
    }

    .button-group a {
        border-radius: 26px;
        padding: 6px 12px;
    }

    input#quicksearch {
        padding: 8px 10px;
        width: calc(100% - 20px);
    }

    a.back h1::before {
        margin-right: 1rem;
    }

    .klasse {
        width: calc(100% - 45px);
        font-size: min(max(0.9rem, 1vw), 1rem);
        padding: clamp(0.8rem, 0.9vw, 1rem) 0;
        padding-right: 45px;
    }

    .accordion {
        width: 100%;
    }

    .accordion__title {
        width: calc(100% - 45px);
        font-size: min(max(0.9rem, 1vw), 1rem);
        padding: clamp(0.8rem, 0.9vw, 1rem) 0;
        padding-right: 45px;
    }

    .accordion__body {
        font-size: min(max(0.9rem, 1vw), 1rem);
    }

    .logos {
        flex-wrap: wrap;
    }

    .logos img {
        max-width: clamp(6rem, 8vw, 8rem);
        height: clamp(3rem, 4vw, 4rem);
        margin-right: 2rem;
        margin-bottom: 1rem;
    }

    .content-bottom {
        margin-top: 4rem;
    }
}


@media only screen and (max-width: 375px) {
    .title-bar-text {
        font-size: .6rem;
    }

    .content {
        width: calc(100% - clamp(1.5rem, 4vw, 6rem) - clamp(1.5rem, 4vw, 6rem));
        padding: clamp(1.5rem, 4vw, 6rem);
        min-height: calc(92vh - 2rem - clamp(1.5rem, 4vw, 6rem) - clamp(1.5rem, 4vw, 6rem));
    }

    a.back h1 {
        font-size: min(max(1.6rem, 3vw), 4rem);
    }

    a.back h1::before {
        height: clamp(1.75rem, 4vw, 4rem);
        width: clamp(1.75rem, 4vw, 4rem);
    }

    .button-group a {
        border-radius: 24px;
        padding: 4px 10px;
        margin-bottom: 6px;
        margin-right: 6px;
    }

    h2 {
        font-size: min(max(1.25rem, 2vw), 2rem);
    }

    p {
        font-size: 0.9rem;
    }

    
}


/* forbid landscape mode on mobile and tablet */
@media only screen and (orientation:landscape) and (hover: none) and (pointer: coarse) and (max-width: 900px) {
    #rotate-device{
      display: block !important;
    }
  }
  
  #rotate-device {
    width:100%;
    height:100%;
    position:fixed;
    z-index:10000000;
    top:0;
    left:0;
    background-color:#0f1010;
    background-image:url(../images/rotate.png);
    background-size:100px 100px;
    background-position:center;
    background-repeat:no-repeat;
    display: none;
  } 
  