/*
Theme Name: ESV
Theme URI: https://esv-lu.de
Author: ESV
Author URI: https://esv-lu.de
Description: Das Theme der Webseite des Eisenbahner-Sportverein 1927 e. V.
Version: 0.1
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esv
*/

body {
  background-color: var(--wp--preset--color--bg-primary);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 1em !important;
  margin-bottom: 1em !important;
}

h1,
h2 {
  line-height: 1.3 !important;
}

.hidden {
	display: none !important;
}

.wp-block-columns > .wp-block-column {
  padding: 0 15px 0 15px;
}

.wp-block-columns > .wp-block-column:first-child {
  padding-left: 0;
}

.wp-block-columns > .wp-block-column:last-child {
  padding-right: 0;
}

.wp-block-table table {
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-collapse: separate;
  border-spacing: 0;
}

.wp-block-table thead {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  text-align: left;
}

.wp-block-table td,
.wp-block-table th {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.wp-block-table tr:last-child td {
  border: none;
}
.wp-block-table figcaption {
  padding-left: 5px;
  padding-right: 5px;
}

.wp-block-image {
  margin: 0;
}

.page-template-wp-custom-template-home .wp-block-cover h2 {
  margin-top: 30px !important;
  margin-bottom: 50px !important;
}

.dp-reader-scrollbar {
  display: none;
}

.esv-email .dashicons-email {
  width: 25px;
  height: 25px;
  font-size: 25px;
}

.esv-email .dashicons-email:hover {
  color: var(--wp--preset--color--primary);
}

.esv-email {
  text-decoration: none;
}

.esv-header {
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 8px;
  z-index: 9998;
  height: 75px;
  padding-right: 25px;
  padding-left: 25px;
}

.esv-header .wp-block-columns {
  height: 100%;
}

.esv-header img {
  width: 100%;
  height: auto;
  max-height: 56px;
}

.esv-header .donation-button {
  height: 40px;
  object-fit: cover;
}

.admin-bar .esv-header {
  top: 32px;
}

.admin-bar .wp-site-blocks {
  min-height: calc(100vh - 32px);
}

.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 75px;
  box-sizing: border-box;
}

footer {
  margin-top: auto !important;
}

.esv-footer {
  height: 60px;
  display: flex;
  justify-items: center;
  box-shadow: rgba(0, 0, 0, 0.2) 0px -1px 8px;
  z-index: 9998;
  text-wrap: nowrap;
}

.esv-footer .wp-block-columns {
  width: 100%;
}

.esv-footer .wp-block-column {
  display: flex;
  align-items: center;
}

.esv-headline h1 {
  display: inline-block;
  margin-bottom: 0 !important;
  word-break: break-word;
}

.esv-headline h1::after {
  content: '';
  display: block;
  border-bottom: 5px solid var(--wp--preset--color--secondary);
  margin-top: 3px;
}

.esv-sections > div {
  padding: 25px 25px 65px 25px;
  position: relative;
}

.esv-sections > div:first-child {
  padding-top: 15px;
}

.esv-sections > div:nth-child(2n) {
  background-color: var(--wp--preset--color--bg-secondary);
}

.esv-section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.esv-section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 35px;
}

.esv-section-divider .shape-fill {
  fill: var(--wp--preset--color--bg-secondary);
}

.esv-sections > div:nth-child(2n) .esv-section-divider .shape-fill {
  fill: var(--wp--preset--color--bg-primary);
}

.esv-person img:not(.esv-icon-mail img) {
  border: 3px solid var(--wp--preset--color--primary);
  object-fit: cover;
  width: auto;
  box-shadow: rgb(0 0 0 / 20%) 0px 4px 8px;
  margin-bottom: 10px;
  width: 150px !important;
  height: 250px !important;
}

.esv-person .dashicons {
  cursor: pointer;
  text-align: center;
  display: block;
  margin: auto;
}

.esv-person p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.esv-btn-news > .wp-block-button__link {
  background-color: #40aa40;
  color: white;
  height: 100%;
  width: 100%;
  padding-left: 50px;
  position: relative;
  text-align: center;
}

.esv-btn-news > .wp-block-button__link:hover {
  background-color: #148914;
}

.esv-btn-news > .wp-block-button__link:before {
  font: normal 23px/1 'dashicons';
  content: '\f504';
  position: absolute;
  left: 5px;
  top: 8px;
  width: 50px;
}

.esv-sponsor-logos {
  width: 750px;
  margin: auto;
  margin-top: 30px;
  gap: 10px !important;
}

.esv-sponsor-logos .wp-block-column {
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.esv-sponsor-logos img {
  width: 100%;
  max-width: 180px;
  vertical-align: middle;
  border-radius: 5px !important;
}

.esv-sponsor-logos .wp-block-image {
  margin: 0 auto;
}

.esv-logo a {
  height: 100%;
  display: table-cell;
  vertical-align: middle;
}

.esv-logo {
  height: 100%;
  width: 100%;
  max-width: 180px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.esv-logo-hornbach {
  background-color: white;
}

.esv-logo-autodoc {
  background-color: #132530;
}

.esv-logo-pkwteile {
  background-color: #058105;
}

.esv-logo-motointegrator {
  background-color: white;
  padding-left: 5px;
  padding-right: 5px;
}

.esv-logo-sportphiel {
  background-color: white;
  padding-left: 5px;
  padding-right: 5px;
}

.esv-logo-sportphiel img {
  padding-bottom: 5px;
}

.esv-animation-abteilungen {
  padding: 0;
  height: 100px;
  overflow: hidden;
}

.esv-animation-abteilungen .wp-block-columns {
  height: 100%;
}

.esv-animation-abteilungen ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: center;
  color: var(--wp--preset--color--fg-white);
  font-weight: 600;
  font-size: 1.6rem;
  position: relative;
  height: 100%;
}

.esv-animation-abteilungen ul li {
  position: absolute;
  width: 100%;
  height: 100%;
  line-height: 100px;
  opacity: 0;
}

#mega-menu-footer-menu > li.mega-menu-item > a.mega-menu-link {
  height: inherit !important;
  line-height: inherit !important;
}

.table-mitgliedsbeitraege tr > td:last-child {
  white-space: nowrap;
}

@media only screen and (max-width: 1360px) {
  .wp-block-site-title {
    display: none;
  }
}

@media only screen and (max-width: 1280px) {
  .page-template-wp-custom-template-home .wp-block-cover h2 {
    font-size: 35px !important;
  }
}

@media only screen and (max-width: 956px) {
  .esv-header {
    display: none;

  }
  .wp-site-blocks {
    min-height: calc(100vh - 48px);
    padding-top: 0;
  }

  .admin-bar .wp-site-blocks {
    min-height: calc(100vh - 48px - 32px);
  }
}

@media only screen and (max-width: 781px) {
  .wp-block-columns {
    display: block;
  }

  .wp-block-columns > .wp-block-column {
    padding: 0;
  }

  .esv-footer {
    height: auto;
    text-align: center;
	text-wrap: wrap;
  }

  .esv-footer .wp-block-column {
    justify-content: space-around;
  }

  .esv-footer .esv-social-icons {
    margin-top: 25px;
  }

  .esv-person {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .page-template-wp-custom-template-home .wp-block-cover h2 {
    font-size: 30px !important;
  }

  .esv-sponsor-logos {
    width: 100%;
  }

  .esv-sponsor-logos img {
    width: 100%;
  }

  .esv-animation-abteilungen {
    display: none;
  }

  .admin-bar .wp-site-blocks {
    min-height: calc(100vh - 48px - 46px);
  }
}

@media only screen and (max-width: 600px) {
  .esv-footer .mega-menu-item {
    display: block !important;
  }

  .esv-footer .mega-menu-link {
    text-align: center !important;
  }

  .esv-footer a.mega-menu-link {
    font-size: 0.9rem !important;
  }

  .admin-bar .wp-site-blocks {
    min-height: calc(100vh - 46px);
  }

  .esv-btn-news {
    width: 100%;
  }
}
/*
@media only screen and (max-width: 500px) {
  .esv-sponsor-logos {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    row-gap: 15px !important;
  }

  .esv-sponsor-logos > div:last-child {
    grid-column: span 2;
  }
}
*/