/*
 * Special definitions for the Wasserwacht website.
 * Some settings that were previously made will be overwritten.
 */
:root {
    --color-ww-dark-blue: rgb(0,0,128);
    --color-ww-blue: rgb(0,140,205);
    --color-ww-dark-grey: rgb(85,79,74);
    --color-ww-middle-grey: #a7a7a7;
    --color-ww-light-grey: rgb(224,221,214);
    --color-ww-primary: white;
    
    --wasserwacht-font-family-body: HelveticaNeueLT, Open Sans;
    --wasserwacht-color-primary: var(--color-ww-blue);
    --wasserwacht-color-hover: var(--color-ww-dark-blue);

    --heading-color: var(--color-ww-blue);
    --link-color: var(--color-ww-blue);
    --body-color: var(--color-ww-dark-grey);
    --body-bg: var(--color-ww-primary);
}

.hidden {
    display: none;
}
.center {
    text-align: center;
}

.flex-center {
    justify-content: center;
}

.site-name {
    color: var(--color-ww-dark-blue);
    font-size: 2.5rem;
    font-weight: var(--wasserwacht-font-weight-headings, 700);
}

a {
    text-decoration: none;
}

.left-img {
    float: left;
    padding-right: 10px;
    padding-bottom: 5px;
}

.right-img {
    float: right;
    padding-left: 10px;
    padding-bottom: 5px;
}

.place_left {
	float: left;
}

.place_right {
	float: right;
}

/* Activate hyphenation */
body {
    hyphens: auto;
    overflow-wrap: anywhere;
}

/* The up link should always be visible. */
#back-top {
    position: fixed;
}


/*
** main navigation - for small visuals
*/
.container-header {
    background-image: none;
    background-color: inherit;
}
.container-header .navbar-toggler {
    --navbar-toggler-padding-y: auto;
    --navbar-toggler-padding-x: 0px;
    color: var(--color-ww-blue);
    margin-left: auto;
    border: none;
}
.container-header .container-nav > nav {
    display: flex;
    width: 100%;
    --link-color: var(--color-ww-dark-grey);
}
.container-header .container-nav .grid-space {
    /* space between logo and submenu button */
    margin-left: auto;
}
.container-header .container-nav .navbar-collapse.show,
.collapsing {
    /* submenu is visible */
    /* below of the title
    position: fixed;
    left: 0px;
    right: 0px;
    top: 100px;
    */
    /* menu left */
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 0px;
    max-width: 75%;
    width: max-content;
    height: auto;
    padding: 20px 20px;
    overflow-y: scroll; /*auto;*/
    /*
    box-shadow: 5px 5px 15px 5px var(--color-ww-middle-grey);
    */
    border-style: solid;
    border-color: var(--color-ww-middle-grey);
    border-width: 0px 2px 2px 0px;

    background-color: var(--body-bg);
    font-size: x-large;
}
.container-header .container-nav .navbar-collapse.show a:hover {
    color: var(--color-ww-middle-grey);
}
.container-header .container-nav .navbar-collapse.show .active > a {
    color: var(--color-ww-blue);
}
.container-header .mod-menu .parent > ul {
    display: inherit;
}
.mod-menu__sub.small {
    /* increasing the size of the submenu items */
    font-size: large;
}
.brand-logo {
    width: 188px;
    height: 63px;
    background-image: url("../images/wasserwacht-logo.svg");
    background-repeat: no-repeat;
    background-size: contain;
}
@media (width >= 992px) and (width < 1200px) {
    .brand-logo {
        width: 63px;
        margin-top: auto;
        background-image: url("../images/wasserwacht-rundlogo.svg");
    }
}
@media (width >= 992px) {
    /* display the menu */
    .brand-logo {
        margin-top: 30px;
    }
    .brand-logo,
    .container-header .mod-menu > li {
        display: flex;
        align-items: center;
        min-height: 100px;
    }
    .container-header .mod-menu > li > a {
        color: var(--color-ww-blue);
        text-transform: uppercase;
        letter-spacing: .5px;
    }
    .container-header .mod-menu > li:hover > a::before {
        right: var(--ww-navbar-item-line-margin-horizontal);
        background-color: var(--color-ww-blue);
        height: 2px;
    }
    .container-header .mod-menu > li > a::before {
        --ww-navbar-item-line-margin-horizontal: 0px;
        content: "";
        display: block;
        position: absolute;
        z-index: -1;
        top: 30px;
        transition: .3s ease-in-out;
        transition-property: background-color, border-color, box-shadow, height, left,
                             right, opacity;
        left: var(--ww-navbar-item-line-margin-horizontal);
    }
    .container-header .mod-menu .parent > ul {
        display: none;
    }
    
    /* show the submenu */
    .container-header .mod-menu > li:hover > ul {
        display: block;
        position: absolute;
        left: -20px;
        z-index: 10;
        width: max-content;
        background-color: var(--body-bg);
        padding-inline: 20px;
        font-size: large;
        /*
        box-shadow: 5px 5px 15px 5px var(--color-ww-middle-grey);
        */
        border-style: solid;
        border-color: var(--color-ww-middle-grey);
        border-width: 0px 2px 2px 2px;

        box-sizing: border-box;
        top: 80px;
    }
    .container-header .mod-menu > li:hover ul {
        display: block;
    }
    .mod-menu__sub a:hover {
        color: var(--color-ww-middle-grey);
    }
    .mod-menu__sub  .active > a {
        color: var(--color-ww-blue);
    }
    .mod-menu__sub.small {
        /* size of the submenu items */
        font-size: normal;
    }
}
@media (width >= 1200px) {
}

/*
** teaser
*/
#header-teaser {
    overflow: hidden;
}

/* slide-show - for 5 images */
/* see http://ebene11.com/slider-als-keyframe-animation-mit-css3.html */
/* Keyframes */
@keyframes slider {
     0%, 19% { left:      0; }
    20%, 39% { left:  -100%; }
    40%, 59% { left:  -200%; }
    60%, 79% { left:  -300%; }
    80%, 99% { left:  -400%; }
    100%     { left:  -500%; }
}
@-webkit-keyframes slider {
     0%, 19% { left:      0; }
    20%, 39% { left:  -100%; }
    40%, 59% { left:  -200%; }
    60%, 79% { left:  -300%; }
    80%, 99% { left:  -400%; }
    100%     { left:  -500%; }
}
@keyframes slide01ToEndStart01 {
    98.99%	  { left: 0; }
    99%, 100% { left: 100%; }
}
@-webkit-keyframes slide01ToEndStart01 {
    98.99%	  { left: 0; }
    99%, 100% { left: 100%; }
}
.teaser-slides,
.teaser-slide {
    -webkit-animation: 100s 0s infinite;
    animation: 100s 0s infinite;
}
/* container for all images */
.teaser-slides {
    animation-name: slider;
    -webkit-animation-name: slider;
    width: 500%;		/* n * 100% */
    position: relative;
}
/* a single image */
.teaser-slide {
    background-position: center center;
    background-size: cover;
    float: left;
    width: 20%;			/* 100% / n */
    height: 150px;
    position: relative;
    left: 0px;
}
#teaser_0 {
    animation-name: slide01ToEndStart01;
    -webkit-animation-name: slide01ToEndStart01;
}
/* different background images */
#teaser_0 {
    background-image: url(../images/teaser_small_0.jpg);
}
#teaser_1 {
    background-image: url(../images/teaser_small_1.jpg);
}
#teaser_2 {
    background-image: url(../images/teaser_small_2.jpg);
}
#teaser_3 {
    background-image: url(../images/teaser_small_3.jpg);
}
#teaser_4 {
    background-image: url(../images/teaser_small_4.jpg);
}
@media (width >= 576px) {
	.teaser-slide {
		height: 230px;
	}
}
@media (width >= 768px) {
	.teaser-slide {
		height: 300px;
	}
}
@media (width >= 992px) {
	.teaser-slide {
		height: 390px;
	}
	#teaser_0 {
		background-image: url(../images/teaser_0.jpg);
	}
	#teaser_1 {
		background-image: url(../images/teaser_1.jpg);
	}
	#teaser_2 {
		background-image: url(../images/teaser_2.jpg);
	}
	#teaser_3 {
		background-image: url(../images/teaser_3.jpg);
	}
	#teaser_4 {
		background-image: url(../images/teaser_4.jpg);
	}
}
@media (width >= 1200px) {
	.teaser-slide {
		height: 470px;
	}
}
@media (width >= 1400px) {
	.teaser-slide {
		height: 550px;
	}
}

/*
** bottom menu
*/
#bottommenu {
    padding-bottom: 40px;
}
#bottommenu .mod-list {
    flex-direction: row;
    font-size: large;
}
#bottommenu .mod-list a {
    text-decoration: none;
    color: var(--color-ww-middle-grey);
}
#bottommenu .mod-list li a:hover {
    text-decoration: none;
    color: var(--color-ww-dark-grey);
}
#bottommenu ul li + li {
    /* all but the first list element */
    padding-left: 20px;
}
#bottommenu > * {
    align-items: center;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    display: flex;
}
#bottommenu > * + * {
    /* direct children of #bottommenu */
    margin-top: 25px;
}
#bottommenu img#brk-logo {
    height: 32px;
}

/* social media button */
[class^="ww-icon-"] {
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-radius: 500px;
    vertical-align: middle;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: .1s ease-in-out;
    transition-property: color, background-color, background-size, border-color, box-shadow
}
.ww-icon-button {
    background: var(--color-ww-blue);
    color: white;
}
.ww-icon-button:hover {
    background-color: var(--color-ww-dark-blue);
    --wasserwacht-color-hover: white;
}
.ww-icon-facebook-button {
    color: var(--color-ww-blue);
    background-color: white;
    font-size: 36px;
}
.ww-icon-facebook-button:hover {
    color: var(--color-ww-dark-blue);
    --wasserwacht-color-hover: var(--color-ww-dark-blue);
}

/* content */
.items-leading figure {
    justify-content: center;
    display: grid;
}
.items-leading img {
    max-height: 15em;
    width: auto;
}
.blog-items {
    margin-bottom: 3em;
}
.blog-item .item-image {
    justify-content: center;
    display: grid;
}
.blog-item .item-image img {
    max-height: 15em;
    width: auto;
}
@media (width >= 992px) {
    .items-leading img {
        max-height: 390px;
    }
    .blog-item .item-image img {
        max-height: 390px;
    }
}

.readmore .btn-secondary {
    color: var(--color-ww-blue);
    background-color: inherit;
}
.readmore .btn-secondary:hover {
    color: var(--color-ww-dark-grey);
}
.readmore .btn {
    border: none;
    padding: 0px;
}

.card-group {
    --card-flex-wide: 1 1 45%;
    --card-max-width: 30rem;    
}
.card {
    margin-top: var(--card-spacer-y);
    padding: 2rem 2rem;
    box-shadow: 0 0 15px 0 rgba(0,0,0,.1);
    text-align: center;
    max-width: var(--card-max-width);
    margin-left: auto;
    margin-right: auto;
    
    --card-title-color: var(--color-ww-blue);
    --card-title-spacer-y: 2rem;
    --card-height: 100%;
}

.card-subtitle {
    margin-top: 0px;
    margin-bottom: calc(0.5 * var(--card-title-spacer-y));
}

.card .btn {
    color: var(--link-color);
    border: 2px solid var(--link-color);
    padding: 0.5rem 1rem;
}

.card .btn:hover {
    color: var(--color-ww-primary);
    background: var(--color-ww-blue);
    border-image: linear-gradient(90deg, #002d55 50%, transparent 50%);
}

@media (width >= 576px) {
    .card-group {
        display: inherit;
        --card-spacer-y: 2rem;
    }
}
@media (width >= 992px) {
    .card-group {
        display: flex;
    }
    .card-group > .card-spacer,
    .card-group > .card    {
        flex: var(--card-flex-wide);
        margin-bottom: var(--card-spacer-y);
    }
    .card-group > .card-spacer:nth-of-type(even),
    .card-group > .card:nth-of-type(even) {
        margin-left: calc(2.0*var(--card-spacer-x));
    }
    .card-group > .card-spacer:last-child,
    .card-group > .card:last-child {
        flex: 0 0 50%;
        margin-left: auto;
        margin-right: auto;
    }
}

.passport-img {
    width: 200px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    border-radius: 5px;
}

/* appointments */
table.badges {
    width: 100%;
    border: 0px;
}
p.badges {
    text-align: center;
}
.badges img {
    width: 125px;
    border: 0px none;
    padding: 5px;
}

table.appointment {
    /*
	border-top: 2px solid #1200b6;
	border-bottom: 2px solid #1200b6;
    */
	padding: 10px 0;
	margin: 5px 0;
    width: 100%;
}
table.appointment thead td {
    font-weight: bold;
}
table.appointment td {
	vertical-align: top;
	padding-right: 0.3em;
}

/* table with stripes every second line */
table.withStripes tbody tr:nth-child(even),
table.withStripes thead tr {
    background-color: var(--color-ww-light-grey);
}

table.withStripes td,
table.withStripes th {
    padding-left: 0.1em;
    padding-right: 0.1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

/* login page */
.plg_system_webauthn_login_button svg {
    width: 30px;
    margin: 4px;
}
