/* 
Theme Name: Websolution Klar
Theme URI: http://klar-webagentur.ch
Author: Klar Webagentur
Author URI: http://example.com
Description: Ein Wordpress Theme erstellt von der Klar Webagentur GmbH
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom, responsive, clean, modern
*/
@import url("https://use.typekit.net/kfm4hwn.css");

:root {
  --white: #ffffff;
  --dark: #000037;
  --max-width: 1200px;
}

/* Global Styles */
html {
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
  overflow-x: hidden;
}

h1 {
  font-size: 60px;
}

/* Header Styles */
* {
  font-family: "helvetica-neue-lt-pro-cond", sans-serif;
  font-weight: 700;
  font-style: normal;
}

html {
  margin: 0px !important;
  padding: 0px;
}

header p.has-medium-font-size {
  font-size: 28px !important;
  width: 80%;
}


p.has-medium-font-size {
  font-size: 24px !important;
}

/* Navigation Styles */
nav:not(.wp-block-query-pagination) {
  display: grid;
  place-items: center;
  border-bottom: 40px solid var(--dark);
  padding: 0 30px;
  position: relative;
  z-index: 900;
}

nav .max-width {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  position: relative;
}

nav .logo {
  translate: 0 32px;
  display: block;
  width: 100%;
  max-width: 400px;
}

nav .logo img {
  max-width: 100%;
}

nav .navlinks ul {
  display: flex;
  gap: 10px;
  translate: 0 50%;
  margin: 0px;
}

nav .navlinks ul li {
  position: relative;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

nav .navlinks a {
  text-decoration: none;
  color: var(--dark);
  background-color: #dedede;
  padding: 5px 10px;
  white-space: nowrap;
}

nav .openSubNav {
  background-color: red;
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav .closeSubNav {
  position: absolute;
  top: -12vh;
  left: 1vw;
  background-color: red;
  width: 50px;
  height: 50px;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(180deg);
  margin-top: 20px;
}

nav .openSubNav svg,
nav .closeSubNav svg {
  width: 30px;
}

nav .openSubNav svg path,
nav .closeSubNav svg path {
  fill: #ffffff;
}

nav .navlinks .sub-menu {
  position: absolute;
  display: flex;
  flex-direction: column;
  left: 0;
  padding: 0px;
  padding-top: 50px;
  top: 0;
  translate: 0 0;
  gap: 0px;
  z-index: -1;
  transform: rotateX(90deg);
  transform-origin: top;
  transition: transform ease-out 0.2s, translate ease-out 0.2s, opacity ease-out 0.2s;
}

nav .navlinks .sub-menu li {
  border-left: 1px solid var(--dark);
  border-right: 1px solid var(--dark);
}

nav .navlinks .sub-menu li:first-of-type {
  border-top: 1px solid var(--dark);
}

nav .navlinks .sub-menu li:last-of-type {
  border-bottom: 1px solid var(--dark);
}

nav .navlinks>ul .menu-item:has(.sub-menu):hover .sub-menu,
nav .navlinks>ul .menu-item .sub-menu:hover {
  transform: rotateX(0deg);
}

nav .navlinks .sub-menu li a {
  background-color: #fff;
  padding: 8px 10px;
  width: 100%;
}

nav .navlinks .sub-menu li:hover {
  background-color: var(--dark);
}

nav .navlinks .sub-menu li:hover a {
  color: #fff;
  background-color: transparent;
}

nav .navlinks .sub-menu li {
  background-color: #fff;
}

nav .navlinks .sub-menu a {
  padding: 0px;
}

nav .navlinks li.current-menu-item>a {
  color: #ffffff;
  background-color: #e31a1a;
  width: 100%;
}

.upper-nav {
  position: absolute;
  right: 0;
  top: 30%;
  display: flex;
  align-items: center;
  gap: 30px;
}

.upper-nav.upper-nav .ort.ort {
  margin-top: 0px;
  margin-bottom: 0px;
}

.upper-nav .social-icons {
  display: flex;
  gap: 10px;
}

.upper-nav .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.upper-nav .social-icons i {
  color: var(--dark);
  font-size: 25px;
}

nav .hamburger {
  font-size: 60px;
  position: absolute;
  top: 30px;
  right: 0;
  display: none;
}

body:not(.home) h1,
body:not(.home) h2:not(.columns-3 h2) {
  background-color: var(--dark);
  color: white;
  padding: 5px 20px;
  width: fit-content;
  line-height: 120%;
}

.custom-fields {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.custom-fields .datum.datum,
.custom-fields .ort.ort {
  margin: 0;
  padding: 0;
}

/* Main Content Styles */
main {
  padding: 20px;
  display: grid;
  place-items: start center;
  padding-bottom: 100px;
}

.max-width {
  max-width: var(--max-width);
  width: 100%;
}

/* Footer Styles */
footer {
  background: var(--dark);
  color: #fff;
  padding: 30px;
  display: grid;
  place-items: center;
}

footer .max-width {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .max-width .legal,
footer .max-width .navlinks {
  display: flex;
  align-items: center;
  column-gap: 20px;
}

footer .max-width a {
  text-decoration: none;
  color: #ffffff;
}

footer ul {
  display: flex;
  column-gap: 20px;
}

footer li {
  list-style: none;
}

footer .sub-menu {
  display: none;
}

header {
  position: relative;
  display: grid !important;
  place-items: center;
}

body:not(.home) header:has(img) {
  height: 20vh;
  min-height: 250px;
}

body:not(.home) header::after {
  display: none;
}

body:not(.home) header .max-width {
  max-width: var(--max-width);
  width: 100%;
  margin-top: 100px;
}

body header img {
  width: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.home header {
  place-items: end center;
}

header>div {
  max-width: var(--max-width);
  width: 100%;
}

header>div h1,
header>div p {
  margin: 0px;
  color: var(--white);
}

header::after {
  content: "";
  background: var(--dark);
  background: -webkit-linear-gradient(180deg,
      rgba(0, 0, 55, 0) 0%,
      rgba(0, 0, 55, 1) 100%);
  background: -moz-linear-gradient(180deg,
      rgba(0, 0, 55, 0) 0%,
      rgba(0, 0, 55, 1) 100%);
  background: linear-gradient(180deg,
      rgba(0, 0, 55, 0) 0%,
      rgba(0, 0, 55, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="var(--dark)",
      endColorstr="var(--dark)",
      GradientType=0);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  z-index: -1;
}

section {
  display: grid;
  place-items: center;
  padding: 100px 30px !important;
}

section>div {
  max-width: var(--max-width) !important;
  width: 100%;
}

section>div>h2 {
  width: fit-content;
  padding: 14px 20px 15px 20px !important;
  color: var(--white);
}

li:has(.box) {
  background-color: var(--white);
  box-shadow: 0 0 20px -10px hsl(from var(--dark) h s 90 / 1);
  padding: 20px;
  list-style: none;
}

.box li {
  list-style: disc;
  margin-left: 14px;
}

.box .wp-block-post-title {
  margin-top: 0;
}

.box a[href*="mailto:"],
.box a[href*="http"] {
  background-color: var(--dark);
  padding: 2px 10px;
  font-size: 16px;
  margin-top: 20px;
  display: block;
}

section ul {
  margin-top: 0;
  margin-left: 0;
  padding-left: 0;
}

.tag-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mitglieder ul li:not(.box ul li) {
  list-style: none;
}

.columns-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  width: 100%;
  gap: 30px;
}
.columns-3 figure {
  margin-bottom: 0;
}
.columns-3 figure a {
  height: 100%;
  display: flex;
}
.columns-3 figure a img {
  object-fit: cover;
}

label {
  color: var(--dark);
}
input, textarea {
  font-size: 18px;
  padding: 5px 10px
}
input[type=submit] {
  background-color: #e31a1a;
  border: none;
  color: #ffffff;
  padding: 10px 30px;
}

.wp-block-media-text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 60px;
  margin-bottom: 100px;
}

section .columns-3 div:has(> a):not(.box > div),
section .columns-3 .wp-block-read-more {
  padding: 5px 10px;
}

section .columns-3 a {
  text-decoration: none;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: bold;
  width: fit-content;
}

section .columns-3 div:has(> a) {
  width: fit-content;
}

.taxonomy-category.taxonomy-category {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.box .taxonomy-category a {
  margin-top: 0px !important;
}

section .columns-3 h2 {
  border-bottom: 4px solid #e31a1a;
  padding-bottom: 10px;
}

body:not(.home) section {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

body:not(.home) .columns-3 .wp-block-post {
  box-shadow: 0px 0px 20px 0px #dedede;
}
body .columns-3 .wp-block-post.category-jugendmusik-roggwil h2 {
  color: #3F8E55 !important;
}

body:not(.home) .wp-block-post-title {
  color: var(--dark);
}

section.mitglieder .entry-content p {
  margin: 0px;
  font-size: 18px;
}

section.mitglieder .wp-block-group.wp-block-group:not(.mitglied-desc div) {
  padding: 0px !important;
}

section.mitglieder .mitglied-desc>div>div.wp-block-group {
  padding: 0 20px 20px;
}

section .mitglied-desc p {
  margin: 0px;
}

section.mitglieder img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
}

section.mitglieder .hidden {
  display: none;
}

.tag-selector {
  margin-bottom: 100px;
}

.tag-selector.tag-selector a.active.active {
  background-color: #e31a1a;
  color: #fff;
}

.tag-selector>div a {
  text-decoration: none;
  background-color: #dedede;
  color: var(--dark);
  padding: 5px 10px;
  font-size: 25px !important;
  margin-right: 0px;
  border-radius: 0px;
}

.wp-block-group:has(> span.ort),
.wp-block-group:has(> span.datum) {
  flex-direction: column;
  align-items: start;
  height: 100%;
}

.datum,
.ort,
.mail {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
  text-decoration: none;
  color: var(--dark);
}

.datum.datum {
  margin-top: 10px;
}

.ort.ort {
  margin-bottom: 20px;
}

.datum::before,
.ort::before,
.mail::before {
  width: 25px;
  height: 25px;
  min-width: 25px;
  display: block;
}

.datum::before {
  content: url("../icons/calendar.svg");
}

.ort::before {
  content: url("../icons/pin.svg");
}

.mail::before {
  content: url("../icons/mail.svg");
}

.wp-block-gallery {
  margin-top: 60px;
}

.wp-block-tag-cloud.single {
  margin-right: 15px;
}

.wp-block-tag-cloud.single a {
  margin-right: 2px;
}

.tag-cloud-link.active {
  background-color: #e31a1a;
  color: #fff;
}

.pagination {
  margin-top: 100px;
}

.pagination .wp-block-query-pagination-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination .page-numbers {
  color: var(--dark);
  background-color: #dedede;
  text-decoration: none;
  width: 30px;
  display: flex;
  height: 30px;
  align-items: center;
  justify-content: center;
}

.pagination .page-numbers.current {
  background-color: #e31a1a;
  color: #fff;
}

.wp-block-query-pagination-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.wp-block-query-pagination {
  margin-top: 60px;
}

.wp-block-query-pagination-numbers .page-numbers {
  background-color: lightgray;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  color: var(--dark);
  text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers.current {
  background-color: var(--dark);
  color: #ffffff;
}

section.ehrenmitglieder {
  flex-direction: column;
  width: 100%;
  align-items: start;
  padding-top: 0px !important;
}

.ehrenmitglieder p:not(.has-medium-font-size):not(.has-large-font-size):not(.has-x-large-font-size) {
  color: #333;
  padding: 10px 0;
  border-top: 1px solid #dedede;
  width: 100%;
}

.ehrenmitglieder p:not(.has-medium-font-size):last-of-type,
.ehrenmitglieder p:not(.has-large-font-size):last-of-type,
.ehrenmitglieder p:not(.has-x-large-font-size):last-of-type {
  border-bottom: 1px solid #dedede;
}

.ehrenmitglieder .has-medium-font-size,
.ehrenmitglieder .has-x-large-font-size,
.ehrenmitglieder .has-large-font-size {
  color: var(--dark);
  margin-top: 60px;
}

p {
  font-size: 24px;
}

body:not(.home) .wp-block-query.wp-block-query,
body:not(.home) .wp-block-group:not(.columns-3 .wp-block-group) {
  padding-top: 0px !important;
}

.wp-block-media-text figure {
  height: 100%;
}

.wp-block-media-text figure img {
  height: 100%;
  object-fit: cover;
}

.wp-block-details summary {
  position: relative;
  padding: 20px;
}

.wp-block-details summary::marker {
  content: "";
}

.wp-block-details summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 48%;
  line-height: 60%;
  translate: 0 -50%;
  transition: all ease-out 0.2s;
}

.wp-block-details[open] summary {
  background-color: #dedede;
  color: var(--dark);
}

.wp-block-details[open] summary::after {
  rotate: 45deg;
}

.wp-block-details {
  border-top: 1px solid lightgray;
}

.wp-block-details:last-of-type {
  border-bottom: 1px solid lightgray;
}

.mobile-bottom-nav {
  display: none;
}

.wp-block-mfb-meta-field-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agenda-item {
  border-top: 4px solid #e31a1a;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 30px;
  row-gap: 10px;
}

.agenda-item>span:not(.agenda-date) {
  height: auto;
  width: 100px;
  min-height: 100px;
  display: flex;
  justify-content: end;
  align-items: center;
}

.agenda-item>span:not(.agenda-date) a {
  display: block;
  background-color: var(--dark);
  fill: white;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agenda-item .agenda-date {
  display: flex;
  flex-direction: column;
}

.agenda-item .agenda-date,
.agenda-item h2 {
  padding-top: 30px;
  padding-bottom: 30px;
}

.agenda-item h2 {
  flex: 1;
}

.agenda-item:hover {
  background-color: #f5f5f5;
}

.agenda-date span {
  display: flex;
  gap: 8px;
}


.agenda-item:last-of-type {
  border-bottom: 4px solid #e31a1a;
}

.agenda-item h2 {
  background-color: transparent !important;
  color: var(--dark) !important;
  display: flex;
  align-items: center;
  max-width: 340px;
  hyphens: auto;
  overflow-wrap: answhere;
}

.agenda-item .datum,
.agenda-item .ort {
  margin-top: 0px;
  margin-bottom: 0px;
}

.agenda-item svg {
  width: 30px;
}

.wp-block-table thead tr {
  background-color: var(--dark);
  color: #ffffff;
}

.wp-block-table table tr td,
.wp-block-table table tr th {
  border: none
}

.wp-block-table table tr td {
  border-bottom: 1px solid lightgray;
}

.wp-block-table table tr td:not(:last-of-type) {
  border-right: 1px solid lightgray;
  white-space: nowrap;
}

.wp-block-table table.has-fixed-layout {
  width: auto;
  min-width: 100%;
}

.wp-block-table .has-fixed-layout td,
.wp-block-table .has-fixed-layout th {
  white-space: nowrap;
  max-width: 100%;
  padding: 20px 10px;
}

.max-width:has(table) {
  --max-width: 1400px;
}

section>div:has(table) {
  overflow-x: scroll;
}


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

  .navlinks,
  .upper-nav {
    display: none;
  }

  nav .hamburger {
    display: block;
    z-index: 999;
  }

  nav:has(.hamburger.fa-xmark) .hamburger {
    color: white;
  }

  nav:has(.hamburger.fa-xmark) .navlinks {
    display: flex;
    flex-direction: column;
    gap: 10vh;
    padding: 12vh 5vw;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 100vh;
    background-color: var(--dark);
    z-index: 900;
  }

  nav:has(.hamburger.fa-xmark) .navlinks .main-menu {
    display: flex;
    flex-direction: column;
    gap: 3vh;
    translate: 0 0;
    margin: 0;
    padding: 0;
  }

  nav:has(.hamburger.fa-xmark) .navlinks .main-menu li.current-menu-item>a {
    width: fit-content;
  }

  nav:has(.hamburger.fa-xmark) .navlinks .main-menu a {
    font-size: 25px;
    width: inherit;
    overflow-wrap: anywhere;
    white-space: wrap;
  }

  nav:has(.hamburger.fa-xmark) .navlinks .mobile-bottom-nav {
    display: block;
  }

  nav:has(.hamburger.fa-xmark) .navlinks .mobile-bottom-nav a {
    background-color: transparent;
    color: #fff;
  }

  nav:has(.hamburger.fa-xmark) .navlinks .mobile-bottom-nav a.mail::before {
    content: url("../icons/mail-light.svg");
  }

  nav:has(.hamburger.fa-xmark) .navlinks .mobile-bottom-nav a.ort::before {
    content: url("../icons/pin-light.svg");
  }

  nav:has(.hamburger.fa-xmark) .navlinks .mobile-bottom-nav a::before {
    width: 55px;
    height: 55px;
    min-width: 55px;
  }

  nav:has(.hamburger.fa-xmark) .navlinks .mobile-bottom-nav a {
    overflow-wrap: anywhere;
    white-space: wrap;
  }

  nav:has(.hamburger.fa-xmark) .navlinks>ul .menu-item .sub-menu {
    left: 0;
    background-color: var(--dark);
    bottom: 0;
    transform: rotate(0deg);
    z-index: +1;
    padding-top: 0;
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100vw;
    opacity: 0;
    translate: 100% 0
  }

  nav:has(.hamburger.fa-xmark) .navlinks>ul .menu-item .sub-menu.activeSubNav {
    translate: 0;
    opacity: 1;
  }

  nav:has(.hamburger.fa-xmark) .navlinks .sub-menu li,
  nav:has(.hamburger.fa-xmark) .navlinks .sub-menu li a {
    background-color: transparent;
    color: #ffffff;
  }

  .agenda-item>span:not(.agenda-date) a {
    padding: 10px 0;
    height: auto;
    width: 100%;
  }

  .agenda-item>span:not(.agenda-date) {
    width: 100%;
  }

  .agenda-item {
    flex-direction: column;
    border-bottom: 1px solid lightgray;
  }

  .agenda-item .agenda-date,
  .agenda-item h2 {
    padding-top: 0px;
  }

  body:not(.home) h2:not(.columns-3 h2) {
    padding-left: 0px;
  }

  .agenda-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    column-gap: 20px;
  }

  .social-icons {
    margin-top: 30px;
    margin-left: 6px;
  }

  .social-icons i {
    font-size: 40px;
  }

  body:not(.home) header .max-width {
    width: 90%;
  }

  footer .main-menu {
    display: flex;
    flex-wrap: wrap;
    padding: 0px;
    margin: 0px;
  }

  footer>div {
    flex-wrap: wrap;
  }

  footer .legal {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 700px) {
  h1 {
    overflow-wrap: anywhere;
    hyphens: auto;
    font-size: 50px !important;
  }

  footer .max-width .legal,
  footer>div,
  footer .max-width .navlinks .main-menu {
    flex-direction: column;
    width: 100%;
    align-items: start;
  }

  footer .navlinks {
    width: 100%;
  }
}