/* Special styling for FussRadKA */

/* General typography */
body {
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
}

a.page-link,
a {
        color: #ef3351;
}

h2, .h2 {
	font-size: 1.56rem;
}

h3, .h3 {
	font-size: 1.36rem;
}

h4, .h4 {
	font-size: 1.16rem;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5 {
    font-weight: 600;
}

/* General colors */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    background-color: #ef3351;
    border-color: #ef3351;
}

.btn {
    padding: 12px 24px;
    font-size: 1.25rem;
    /* Space between buttons in landing section on front page if the two buttons are displayed above each other */
    margin-bottom: 10px;
}

/* Add hyphens automatically to headings on small displays */
/* Avoid it on wider displays. */
@media (max-width: 770px) {
    h1, h2, h3, .h1, .h2, .h3,
    .landing-goal {
        hyphens: auto;
    }

    h1.landing-title {
        hyphens: manual;
    }
}

@media (max-width: 500px) {
    .landing-goal {
        font-size: 2.8rem;
    }
}

/* Maximum line length for text to improve readability */
@media (min-width: 920px) {
    .entry-header,
    .entry-content,
    nav .pagination {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* No lines around posts and pages */
/* No lines around dropdown menus */
main#main .post,
main#main .page,
.navbar .dropdown-menu {
	border: unset;
}

/* Images floated to right using Bootstrap col* */
.float-image {
	margin-bottom: 1rem;
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}
.float-image img {
	width: 60%;

}

@media (min-width: 768px) {
	.float-image {
		float: right;
		width: 40%;
		margin-left: 1rem;
	}
	.float-image img {
		width: 100%;
	}
}

/* Slogan on home page */
.landing,
.landing-goal {
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
}

.landing-title,
.landing-about,
.landing-goal {
    color: white;
    font-weight: 500;
}

.landing-title,
.landing-goal {
    font-size: 3.125rem;
}

.landing-title {
    text-transform: uppercase;
}

.landing-about {
    font-size: 1.875rem;
}

.landing-goal {
    background-color: #00aaaf;
    width: 100%;
    padding: 25px 10px;
}

/*.front-page-section .col-md6 {
    margin-left: 10px;
    margin-right: 10px;
}*/

/* section Unterschriftensammlung on front page */

.front-page-box .btn {
    padding: 12px 24px;
    font-size: 1.25rem;
}

.front-page-box img {
    margin-bottom: 12px;
}
@media (min-width: 768px) and (max-width: 999px) {
    .front-page-box h2 {
        font-size: 1.4rem;
    }
    .front-page-box a.btn {
        font-size: 1.0rem;
    }
}

.front-page-box {
    margin-left: 10%;
    margin-right: 10%;
}

@media (min-width: 768px) {
    .front-page-box {
        margin-left: unset;
        margin-right: unset;
    }
}

@media (max-width: 500px) {
    .front-page-box {
        margin-left: 10px;
        margin-right: 10px;
    }
}

#sammlungsende {
    font-size: 1.25rem;
    background-color: #00aaaf;
    color: white;
}

.sammelstellenkarte {
    border: none;
}

#embed-sammelstellenkarte {
    width: 100%;
    text-align: center;
    height: 250px;
}

@media (min-width: 768px) {
    #embed-sammelstellenkarte {
        height: 300px;
        /* ensures that map is as large as other boxes if they rendered in one row */
        height: 100%;
    }
}


/* News on front page */
.news-snippet h2 {
    font-size: 1.365rem;
    hyphens: auto;
    word-wrap: break-word;
}

.news-snippet h3 {
    font-size: 1.19rem;
}

.news-snippet h4 {
    font-size: 1.015rem;
}

.news-snippet p {
    font-size: 0.875rem;
}

/* Date and author line above posts */
#main .post .entry-header .entry-meta,
.entry-meta {
	font-size: 1rem;
}
.entry-meta {
	margin-bottom: 1rem;
}

/* Previous/next post pagination */
.page-link:hover,
.page-link:focus {
	color: #ef3351;
}

.page-link .fa {
    color: rgb(212, 212, 212);
    font-size: 1.875rem;
}

.page-link .fa,
.page-link {
    line-height: 1.6875rem;
}

.page-link {
    border-style: none;
    hyphens: auto;
}

.page-link.previous-post {
    border-right-style: solid;
    text-align: left;
}

.page-link.next-post {
    border-left-style: solid;
    text-align: right;
}

.pagination .page-item {
    max-width: calc(50% - 10px);
}

@media (max-width: 770px) {
    .pagination .page-link {
        hyphens: auto;
    }
}

/* Page Header */
header.page-header div.col-md-12 {
	padding-left: 0px;
	padding-right: 0px;
	min-height: 370px;
	background: rgba(0, 0, 0, 0.47) url('/wp-content/uploads/2022/03/karlsruhe-fahrrad-2.png');
	background-blend-mode: darken;
	background-repeat: no-repeat;
	background-size: cover;
	background-position-x: 50%;
	background-position-y: 50%;
}
.landing {
	margin-top: 200px;
        margin-bottom: 0px;
        padding-bottom: 40px;
}

@media (min-width: 992px) {
	header.page-header div.col-md-12 {
		min-height: 380px;
	}
	.landing {
		margin-top: 400px;
                margin-bottom: 0px;
                padding-bottom: 40px;
	}
}

nav.navbar {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.125rem;
}

/* Logo */
.navbar-brand img {
	width: 230px;
	height: inherit;
}

header ul.navbar-nav {
	margin-right: 0px;
	margin-left: auto;
}

/* Distance between navbar items */
nav.navbar.navbar-expand-lg li a.nav-link {
	padding-right: 0.9rem;
}

.navbar a {
	color: black;
}

.navbar .navbar-collapse {
	background-color: white;
	border-radius: 0.25rem;
}

/* Navbar link color */
/* Navbar hover color */
.navbar-nav .nav-link {
	color: #ef3351;
}
.navbar-nav a.nav-link {
	padding-left: 0.9rem;
}
.navbar .active a,
.navbar-nav .nav-link:hover {
	color: #ef3351;
	background-color: #00aaaf;
}

.navbar-nav .nav-link:focus {
	color: #ef3351;
	background-color: #55595C;
}

/* Navbar font color on background image */
@media (min-width: 992px) {
	.navbar-light .navbar-nav .nav-link,
	.navbar-nav .nav-link {
		color: white;
		padding-left: 0px;
	}
	
	.navbar .navbar-collapse {
		background-color: transparent;
	}

	.navbar .active a,
	.navbar-nav .nav-link:hover,
	.navbar-nav .nav-link:focus {
		color: #ef3351;
		background-color: transparent;
	}
}

/* Navbar toggler icon */
.navbar .navbar-toggler {
    position: absolute;
    right: 1rem;
    top: 55px;
}

.navbar.fussradka-bg-light .navbar-toggler {
	background-color: white;
}
.navbar.fussradka-navbar-light .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1.0%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Body and footer width */
.site-content, .site-footer {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    /*padding-top: 40px;*/
    /*padding-bottom: 60px;*/
    padding-bottom: 20px;
}

.footer-container {
    padding-top: 20px;
    padding-bottom: 20px;
}

img#footer-logo {
    max-width: 215px;
    display: block;
}

@media (min-width: 768px) {
    img#footer-logo {
        max-width: 100%;
    }
}

#footer-menu-container a {
    color: black;
    font-size: 1.125rem;
}
#footer-menu-container a:hover,
#footer-menu-container a:focus {
    color: #ef3351;
    text-decoration: none;
}

/* Social media icons */
.social-media-icon {
    background-color: #ef3351;
    font-size: 1.56rem;
    border-radius: 10%;
    width: 3.125rem;
    height: 3.125rem;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
}

a.social-media-icon:hover,
a.social-media-icon:focus {
    text-decoration: none;
}

.social-media-icon i {
    color: white;
}

/* FAQ accordion */
/* Wahlprüfsteine (head-with-summary) for expandible blocks containing an always visible heading and summary */
.faq-accordion h2,
.faq-accordion.head-with-summary,
.faq-accordion.collapse {
    outline-style: solid;
    outline-width: 1px;
    margin-top: 1px;
    margin-bottom: 1px;
    padding: 15px 20px;
    outline-color: rgb(212, 212, 212);
}

a.faq-accordion:hover,
a.faq-accordion:focus {
    text-decoration: none;
    color: #ef3351;
}

.faq-accordion.head-with-summary,
.faq-accordion h2 {
    display: flex;
    gap: 1rem;
}

.faq-accordion.head-with-summary::before,
.faq-accordion h2::before {
    content: "\f0d7 ";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.head-with-summary {
    flex-wrap: wrap;
}

.head-with-summary {
    color: rgb(33, 37, 41);
}

a.faq-accordion.head-with-summary::before,
a.head-with-summary h2,
a.head-with-summary h3,
a.head-with-summary h4 {
    color: #ef3351;
}

@media (min-width: 768px) {
    .head-with-summary {
        flex-wrap: wrap;
    }
    .head-with-summary > * {
        width: 45%;
    }
}

/* Buendnis */
.unterstuetzer,
.buendnis {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin-bottom: 1rem;
}

.unterstuetzer img,
.buendnis img {
	height: auto;
}

.unterstuetzer > *,
.buendnis > * {
	align-self: center;
	margin: 15px 15px 15px 15px;
}

.unterstuetzer .unterstuetzer-wide img,
.unterstuetzer img.unterstuetzer-wide {
	width: 160px;
}
.unterstuetzer .unterstuetzer-normal img,
.unterstuetzer img.unterstuetzer-normal {
	width: 120px;
}
.unterstuetzer .unterstuetzer-narrow img,
.unterstuetzer img.unterstuetzer-narrow {
	width: 80px;
}

.buendnis .buendnis-wide img,
.buendnis img.buendnis-wide {
	width: 200px;
}
.buendnis .buendnis-normal img,
.buendnis img.buendnis-normal {
	width: 150px;
}
.buendnis .buendnis-narrow img,
.buendnis img.buendnis-narrow {
	width: 100px;
}

@media (min-width: 576px) {
	.unterstuetzer > .unterstuetzer-wide {
		width: 30%;
		max-width: 300px;
	}
	.unterstuetzer > .unterstuetzer-normal {
		width: 22%;
		max-width: 220px;
	}
	.unterstuetzer > .unterstuetzer-narrow {
		width: 15%;
		max-width: 150px;
	}
	.buendnis > .buendnis-wide {
		width: 40%;
		max-width: 400px;
	}
	.buendnis > .buendnis-normal {
		width: 30%;
		max-width: 300px;
	}
	.buendnis > .buendnis-narrow {
		width: 20%;
		max-width: 200px;
	}

	/* If the image is child of an anchor which is child of a flexbox, we have to assign
	 * the proportional width to the flexbox member (anchor) and 100% to the image. */
	.unterstuetzer > .unterstuetzer-wide > img,
	.buendnis > .buendnis-wide > img,
	.unterstuetzer > .unterstuetzer-normal > img,
	.buendnis > .buendnis-normal > img,
	.unterstuetzer > .unterstuetzer-narrow > img,
	.buendnis > .buendnis-narrow > img {
		width: 100%;
	}
}

/* Signatures progress */
#unterschriftenzaehler {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

#unterschriftenzaehler a {
    color: white;
}

#unterschriftenzaehler,
#signatures-progress {
    min-height: 50px;
}

#signatures-progress {
    position: absolute;
    z-index: -1;
    width: 100%; /* required, otherwise canvas is scaled */
    border-radius: 4px;
}

#unterschriftenzahl {
    font-size: 1.125rem;
}

#zahl-gueltige {
    font-size: 0.9rem;
}

.unterschriftenzahl {
    color: white;
    text-align: center;
    margin: 0px;
}

#newsletter {
    background-color: #00aaaf;
    color: white;
    padding-top: 1.0rem;
}

#support-form-message {
    display: none;
}

#support-form-message.visible {
    display: block;
}

.support-form .failure {
    background-color: #ffc6b4;
}

.support-form .success {
    background-color: #00aaaf;
    color: white;
}
