/* =basics
    --------------------------------------------------------------- */
h2, .h2 {
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-size: 3em;
    line-height: 1.2em;
}

/* =header
--------------------------------------------------------------- */
.mainnav__dropdown__content>ul {
    max-height: calc(100vh - 275px);
}

.headimage {
    height: 33.3333vw;
    max-height: 640px;
    background-image: none;
}
.service {
    height: 86px;
    margin-top: -86px;
    font-size: 1.5em;
    width: 100%;
}

.search-form {
    flex: 2 0 0;
     width: 50%;
}

.service--link {
    flex: 1 0 0;
    width: 25%;
	z-index: 2;
}

/* =main
--------------------------------------------------------------- */
.main {
    width: 100%
}
.home-link {
    margin-top: -1.3em
}
.home-link a {
    text-decoration: none
}
.home-link a:hover,
.home-link a:focus {
    text-decoration: underline
}
/* =slickslide
--------------------------------------------------------------- */
.headimage .main-carousel {
    overflow: hidden;
    height: 100%;
    margin: 0;
}

.headimage .main-carousel div {
    height: 100%
}

.headimage .carousel-cell {
    width: 100%;
    max-height: 640px;
    background-position: center center;
    background-size: cover;
}

.main-carousel:focus,
.carousel-cell:focus,
.carousel-cell img:focus,
.carousel-cell figure:focus,
.carousel-cell a:focus{
    outline: none;
}

.mod-lst .mod-entry.home-tile.carousel-cell,
.home-tile.carousel-cell,
    .mod-lst .slick-slide {
    width: 410px;
    margin: 0 10px;
}

/* =events, =news
--------------------------------------------------------------- */
.mod-lst .mod-entry.home-tile{
    float: left;
    width: 24.25%;
    margin-right: 1%;
    border: none;
    padding: 0;
}
.mod-lst .mod-entry.event-item.home-tile:last-child{
    margin-right: 0%;
}
.home-tile figure{
    position: relative;
    overflow: hidden;
}
.home-tile figure:hover figcaption,
.home-tile a:focus figcaption,
.home-tile figure:hover .event-date,
.home-tile a:focus .event-date,
.home-tile figure:hover .news-meta,
.home-tile a:focus .news-meta{
    color: var(--clr-primary);
}
.home-tile figure:hover img,
.home-tile a:focus img{
    transform: scale(1.1);
}
.home-tile img {
    transition: 0.3s;
}
.home-tile figcaption {
    position: absolute;
    bottom: 0;
    width: 100%;
    min-height: 144px;
    padding: 2em 2em 1em 2em;
    background-color: rgba(255,255,255,0.75);
    color: #000;
}
.home-tile figcaption p,
.home-tile figcaption h3 {
    margin: 0;
    width: 100%;
    line-height: 1.2em;
    text-wrap: balance;
    hyphens: auto;
}
.event-date,
.news-meta{
    color: #000;
    font-size: 1.1em;
}
.event-title,
.news-title{
    font-size: 2em;
    line-height: 1em;
    text-transform: none;
}
.mod-news .slick-track .home-tile.carousel-cell {
    margin: 0;
}
.mod-news .no-entry {
    width: 94%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
    margin-bottom: 2.5em;
}
.event-item.home-tile figure {
    height: 0;
	padding-bottom: 134%;
}

/* =Aarau in Kürze, kwicks
--------------------------------------------------------------- */
.aarau-short figure,
.aarau-short {
    height: 540px;
}

.aarau-short .home-tile {
	height: inherit;
    overflow-y: hidden;
}
.aarau-short figure {
    display: inline-block;
    position: relative;
    right: -50%;
    overflow: visible;
    margin: 0;
}
.aarau-short figure img {
    position: relative;
    left: -50%;
    height: 100%;
    max-width: unset;
    width: auto;
    display: block;
    filter: blur(0.5em);
    transform: scale(1.05);
    transition: 0.5s
}
.aarau-short .home-tile figcaption {
    opacity: 0;
    left: calc(-50% + 1em);
    background-color: var(--clr-primary);
    color: #fff;
    transition: opacity 0.5s
}
.aarau-short .kwicks-expanded figcaption {
    opacity: 1;
}
.aarau-short .kwicks-expanded figure img{
    -webkit-filter: blur(0);
    filter: blur(0);
}
.home-tile--fact figure:hover figcaption {
    color: #fff;
}
.home-tile--fact figcaption {
    width: 66%;
    bottom: 1em;
}
.fact-number {
    font-size: 4em;
}

/* =Instafeed
--------------------------------------------------------------- */
#instafeed  {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
#instafeed a {
	float: left;
    flex: 1 1 16.5%;
}
#instafeed .instafeed--item {
    position: relative;
    height: 16.5vw;
    border: 4px solid #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin: 0;
}
#instafeed .instafeed--item img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
}

.no-objectfit #instafeed .instafeed--item img{
    height: auto;
    display: none;
}

#instafeed .instafeed--item:hover img,
#instafeed a:focus img{
    transform: scale(1.1);
}

/* =welcome-box
--------------------------------------------------------------- */
.welcomebox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(0,0,0,0.2);
    z-index: 99999999999999; 
    display: none;
}

.welcomebox--box {
    flex: 0 1 auto;
    height: auto;
    background-color: #fff;
    border-radius:4px;
    margin-top: -10%;
    padding: 3em;
    width: 50%;
    margin-left: 25%;
    box-shadow: 4px 2px 25px 0px rgba(0,0,0,0.3)
}
.welcomebox--logo {
	text-align: right;
}
.welcomebox--logo img {
	width: 160px;
}
.welcomebox--content {
	padding-right: 160px;
}
.welcomebox h2 {
    margin-top:1em;
}

@media only screen and (max-width: 83.25em) { /* 1332/16 */

    /* =slickslide
    --------------------------------------------------------------- */
    .mod-lst .mod-entry.home-tile.carousel-cell,
    .home-tile.carousel-cell,
    .mod-lst .slick-slide{
        width: 344px;
        margin: 0 10px;
    }
}

@media only screen and (max-width: 62.5em) { /* 1000/16 */

    /* =header
    --------------------------------------------------------------- */
    .header .logo {
        display: block;
    }
    .logo-nav-container {
        max-height: initial;
        height: auto;
        width: auto;
    }
    .headimage,
    .carousel-cell {
        height: 50vw;
    }
    .header .logo-big .logo img{
        transform: scale(1);
    }
    .search-btn {
        padding: 0 0.6em;
        font-size: 1.4em;
    }


    /* =mainnav
    --------------------------------------------------------------- */
    .mainnav__dropdown__content>ul {
        max-height: none;
    }

    /* =slickslide
    --------------------------------------------------------------- */
    .mod-lst .mod-entry.home-tile.carousel-cell,
    .home-tile.carousel-cell,
    .mod-lst .slick-slide {
        width: 234px;
        margin: 0 10px;
        height: auto
    }
    li.aarau-short--slickitem.home-tile.carousel-cell {
        margin: 0px -15px;
    }
    .home-tile figcaption {
        background-color: rgba(255,255,255,0.9);
        hyphens: auto;
        padding: 1em 1em 0.5em 1em;
        min-height: 105px;
    }
    .home-tile figcaption .event-date, .home-tile figcaption .news-meta {
        font-size: 0.9em;
        line-height: 1.2em;
        margin-bottom: 0.5em;
    }
    .event-title,
    .news-title{
        font-size: 1.2em;
		line-height: 1.2em;
    }

    /* =Instafeed
    --------------------------------------------------------------- */
    #instafeed a {
        flex: 1 1 25%;
    }
    
    #instafeed .instafeed--item {
        width: auto;
        height: 25vw;
        border: 3px solid #fff;
    }
    
    .welcomebox--box {
        padding: 2em;
        width: 80%;
        margin-left: 10%;
    }
    .welcomebox--logo {
        text-align: right;
    }
}


@media only screen and (max-width: 50em) { /* 800/16 */

    /* =header
    --------------------------------------------------------------- */
    .service {
        font-size: 1em
    }
    .search-btn {
        padding: 0
    }
    .mandant--title {
        top: 0;
    }

    /* =content
    --------------------------------------------------------------- */
    h2 {
        font-size: 1.6em;
    }
    .col-8,
    .col-4 {
        width: 100%;
        margin: 0;
    }
    .mod-lst .mod-entry.home-tile {
        width: 49%;
        margin: 0 2% 20px 0;
    }
    .mod-lst .mod-entry.home-tile:nth-child(even) {
        margin-right: 0;
    }
    
    /* =Instafeed
    --------------------------------------------------------------- */
    #instafeed {
        margin: 0 auto;
        max-width: 94%;
    }
    #instafeed a {
        flex: 1 1 30%;
        margin: 0 2vw 2vw 0;
    }
    
    #instafeed a:nth-child(3n + 3) {
        margin-right: 0;
    }
    
    #instafeed .instafeed--item {
        width: auto;
        height: 33.3333333vw;
        border: 2px solid #fff;
    }
    
    /* =Aarau in Kürze, kwicks
    --------------------------------------------------------------- */
    .aarau-short figure,
    .aarau-short {
        height: 270px;
    }
    
    .home-tile--fact figcaption {
        font-size: 0.8em;
        width: 90%;
        bottom: 0.5em;
        left: -45%;
    }
    .fact-number {
        font-size: 2.5em;
    }
    
	/* =welcome-box
	--------------------------------------------------------------- */
    .welcomebox--box {
        padding: 1em;
        width: 80%;
        margin-left: 10%;
    }
    .welcomebox--logo img {
        width: 100px;
    }
    .welcomebox--content {
        padding-right: 0;
    }
    .welcomebox h2 {
        margin-top:1em;
    }
}

@media only screen and (max-width: 32.5em) {

    .service {
    	height: 61px;
    	margin-top: -61px;
        font-size: 0.8em;
    }

    .toplinks {
        padding-top: 0;
    }

    .main-carousel {
        margin: 0 3%;
    }
    .headimage, .carousel-cell {
        height: 100vw;
    }

    .mod-lst .mod-entry.home-tile.carousel-cell, 
    .home-tile.carousel-cell,
    .mod-lst .mod-entry.home-tile,
    .mod-lst .slick-slide{
        height: auto;
        width: 49%;
        margin: 0 2% 5px 0;
    }

    .mod-lst .mod-entry.home-tile.carousel-cell:nth-child(even), 
    .home-tile.carousel-cell:nth-child(even),
    .mod-lst .mod-entry.home-tile:nth-child(even){
        margin-right: 0;
    }

    .mandant--title {
        top: 80px;
    }

    .news-item.home-tile figure {
        height: 0;
        padding-bottom: 134%;
    }
}


