/* Button für die mobile Navigation */
.item-content h3 {
  border: none;
}
#wrapper {
  margin-left: -235px;
}
#openbutton {
	position: fixed;
	top: 24px;
	left: 24px;
  z-index: 99;
}
label.menubutton { 
   display: block;
   background: var(--nc-bg-small); 
   width: 40px; 
   height: 40px; 
   position: relative; 
   margin-left: auto; margin-right: auto;
   border: 1px solid #fff;
   border-radius: 4px; 
}
.line { 
   position: absolute; 
   left:5px;
   height: 3px; width: 30px; 
   background: #fff; border-radius: 2px;
   display: block; 
   transition: 0.5s; 
   transform-origin: center; 
}

.line:nth-child(1) { top: 8px; }
.line:nth-child(2) { top: 18px; }
.line:nth-child(3) { top: 28px; }
input#hamburger, input#hamburger-close {
	display: none;
}
#closebutton {
	margin-top: 25px;
	margin-right: 25px;
  z-index: 99;
}

.close .line:nth-child(1) {
  animation: closeButton1; animation-duration: 300ms; animation-fill-mode: forwards;
}
.close .line:nth-child(2) {
  animation: closeButton2; animation-duration: 300ms; animation-fill-mode: forwards;
}
.close .line:nth-child(3) {
  animation: closeButton3; animation-duration: 300ms; animation-fill-mode: forwards;
}

@keyframes closeButton1 {
  0% { transform: translateY(0) rotate(0deg);}
  100% { transform: translateY(10px) rotate(45deg);}
}
@keyframes closeButton2 {
  0% { transform: translateY(0) rotate(0deg); opacity: 1;}
  100% { opacity: 0;}
}
@keyframes closeButton3 {
  0% { transform: translateY(0) rotate(0deg);}
  100% { transform: translateY(-10px) rotate(-45deg);}
}

.open .line:nth-child(1) {
  animation: openButton1; animation-duration: 300ms; animation-fill-mode: forwards;
}
.open .line:nth-child(2) {
  animation: openButton2; animation-duration: 300ms; animation-fill-mode: forwards;
}
.open .line:nth-child(3) {
  animation: openButton3; animation-duration: 300ms; animation-fill-mode: forwards;
}

@keyframes openButton1 {
  0% { transform: translateY(10px)  rotate(45deg);}
  100% { transform: translateY(0)  rotate(0deg);}
}
@keyframes openButton2 {
  0% { opacity: 0;}
  100% { opacity: 1; transform: translateY(0)  rotate(0deg);}
}
@keyframes openButton3 {
  0% { transform: translateY(-10px)  rotate(-45deg);}
  100% { transform: translateY(0)  rotate(0deg);}
}

#closebutton .line:nth-child(1) { top: 18px; transform: rotate(45deg); transition: 100ms; }
#closebutton .line:nth-child(2) { top: 18px; display: none; transition: 100ms;}
#closebutton .line:nth-child(3) { top: 18px; transform: rotate(-45deg); transition: 100ms;}

/* Navigationsleiste Mobilgeräte */

.ausklappen {
  animation-name: menu_out;
  animation-duration: 1000ms;
  animation-fill-mode: both;
}
.einklappen {
  animation-name: menu_in;
  animation-duration: 1000ms;
  animation-fill-mode: both;
}
@keyframes menu_out {
  from {transform: translateX(-200px);}
  to {transform: translateX(0);}
}
@keyframes menu_in {
  from {transform: translateX(0);}
  to {transform: translateX(-200px);}
}
#leftbox{
  height: 100%;
  width: 250px;
  margin: 0;
  padding: 12vh 15px 10px 20px;
  /* position: fixed; */
  background: var(--nc-ac-1); 
  color: #fff;
  grid-area: navigation;
  z-index: 20;
}

/* Inhaltsbereich */
#main * {
	pointer-events: auto;
}
#wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: auto calc(100vw - 10px);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
    "navigation header" 
    "navigation content" 
    "navigation footer";
  /* transform: translateX(-200px);
  transition: 300ms ease-in; */
}

/* Kopfleiste */

header {
  grid-area: header;
}


#logobox {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 10px;
}
#logo img {
  margin: 0;
}

#name {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.4em;
  font-weight: 600;
  color: var(--nc-tx-3);
  text-transform: uppercase;
  line-height: 100%;
}
.balken {
  border-bottom: 3px solid var(--nc-bg-3);
  width: 100%;
  margin: 3px 0;
}

/* Hauptbereich */


#main {
  grid-area: content;
  padding: 0 10px;
  margin-top: 5px;
  background-image: var(--figur);
  background-repeat: no-repeat;
  background-size: 35%;
  background-position: 105% 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
#name {
  position: relative;
  width: auto;
  align-self: flex-end;
}
#position-3 {
  margin-top: 3em;
}
/* Footer */

footer{
  grid-area: footer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  margin-top: 0;
}

#spruch {
  color: var(--nc-bg-1);
  text-transform: uppercase;
  text-align: center;
}
#spruch p {
  margin: 0;
  font-size: 0.95em;
}
footer nav {
  margin: 0;
}
#content {
  position: relative;
  height: 100%;
  padding-bottom: 3rem;
  pointer-events: none;
}
.moduletable.bdy {
  /* position: absolute; */
  left: 20px;
  margin-bottom: -70px;
  width: 40%;
}
#picture {
  display: none;
}
.newsflash-title {
  color: var(--nc-tx-3);
}

/* Überschrift / Titel Startseite */
.item-content {
    container-type: inline-size;
}
h2.item-title {
    font-size: clamp(1.25rem, 6cqw, 2rem);
    border-bottom: 1px solid var(--nc-ac-2);
}

/* Navigationen */
/*Hauptnavigation für Mobilgeräte*/
#mobilnavigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--nc-lk-tx);
  font-size: 1.5rem;
  font-weight: 500;
  font-family: var(--nc-font-2); 
}
#mobilnavigation li {
  margin-bottom: 5px;
}
#mobilnavigation a {
  text-decoration: none;
  color: var(--nc-lk-tx);
}
#mobilnavigation li.deeper ul {
  margin-left: 1em;
  font-size: 0.9em;
}
#mobilnavigation h3 {
  color: var(--nc-lk-tx);
  border-bottom: 2px solid var(--nc-bg-1);
  font-size: 1.5rem;
}

/*Servicenavigation*/

div#servicenavigation {
  min-width: 25%;
}
#servicenavigation ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: .8rem;
  margin: 0;
  padding: 0;
}
#servicenavigation ul li {
  margin-left: 3px;
  padding-left: 3px;
  color: var(--nc-lk-tx-2);
}

#servicenavigation a {
  color: var(--nc-lk-tx-2);
  text-decoration: none;
}
/*Hauptnavigation - Keine Darstellung auf schmalen und Touchgeräten*/
#hauptnavigation {
  display: none;
}

.clr {
  clear: both;
}
/*Überschrift h4, wenn sie im  im Blog-Layout erscheint*/
.item-text h4 {
  color: var(--nc-tx-3);
}
.partner  .item-content {
  max-width: 580px;
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 66% 33%;
  grid-template-areas: 
    "header header"
    "text image";
}
.partner .item-content .page-header {
  grid-area: header;
}
.imagebox {
  grid-area: image;
}
.partner .item-content .item-image {
  display: flex;
  justify-content: space-around;
  align-items: start;
  width: 75%;
  margin: 0 auto;
}
.partner .item-content .item-text {
  grid-area: text;
}
q {
  color: var(--nc-ac-1);
  font-weight: 600;
  margin-bottom: 0.3em;
}
q + *{
  font-style: italic;
  font-size: 0.95em;
}
/* Read more */
p.readmore {
  display: block;
  text-align: right;
}
div.readmore {
  display: flex;
  justify-content: end;
}
a.btn.btn-secondary, p.btn.btn-secondary {
  text-decoration: none;
  padding: 3px;
  background-color: var(--nc-tx-3);
  border-radius: 3px;
  color: var(--nc-lk-tx-2);
  font-size: 0.8em;
}
p.btn.btn-secondary {
  cursor: pointer;
}
/* Modulposition 2 (Aktuelles & Termine auf der Startseite */
  #position-2 {
    display: flex;
    flex-direction: column;
    clear: both;
  }
  #position-2 .moduletable {
    width: 100%;
    margin-bottom: 1.5em;
  }

/*--- Anpassungen Unterseiten ---*/
/* Leistungen */
.leistungen #position-2 .moduletable {
  margin-left: 0.5em;
  margin-top: 0.5em;
}
.leistungen #position-2 h3 {
  /* width: 39%; */
  width: fit-content;
  padding: 0 0px;
}
/* Über mich */

.ueber-mich .com-content-category-blog {
  margin-bottom: 5em;
}

/*--- Anpassung Plug Ins ---*/

/* RC Gallery */

#rc_sb_title {
  display: none;
}

/* Google Maps auf der Kontaktseite und Einstellung für Cookiesicherung*/

#maps {
  margin-bottom: 9em;
}

.cookiesck-iframe-wrap {
  width: 100%;
  display: grid;
  place-items: center;
}
.cookiesck-iframe-wrap img {
  max-width: 100%;
}
.cookiesck-iframe-wrap-allowed {
	width: 100%;
}

/* Overlay für Thumbnails */

.partner .item-image {
  cursor: pointer;
}

.overlay {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.75);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  margin: 0;
  padding: 30px;
  animation: 250ms overlayAnzeigen;
}
@keyframes overlayAnzeigen {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
.overlay img {
  object-fit: contain;  
}

/* Jevents Anpassung*/
  /*Eventliste*/
  .event_details_card {
    width: 100%;
    margin-bottom: 0.5em;
    margin-left: 5px;
    padding: 5px;
    position: relative;
    /* border-left: 3px solid var(--nc-bg-2); */
  }
  .event_details_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    margin-left: -5px;
    background: var(--nc-bg-small);
  }
  h4 a.ev_link_row {
    font-size: 1.1rem!important;
    font-weight: 500!important;
    color: var(--nc-tx-1)!important;
    margin-top: 0;
  }
  .event_details_card h4 {
    margin-top: 0;
    padding-top: 0;
  }
ul.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  inset: 0;
}
ul.pagination li {
  display: grid;
  place-items: center;
  margin: 0 3px;
  border: 1px solid var(--nc-ac-1);
  border-radius: 50%;
  width: 5%;
  aspect-ratio: 1/1;
  font-size: 0.75rem;
  transition: background-color 200ms, color 100ms ;
}

ul.pagination li:hover {
  color: var(--nc-lk-tx-2);
  background-color: var(--nc-bg-2);
  border-radius: 50%;
  /* border: 1px solid var(--nc-ac-1);
  padding: 3px 5px; */
}
ul.pagination li.disabled:hover {
  color: unset;
  background-color: unset;
  border-radius: 50%;
  /* border: 1px solid var(--nc-ac-1);
  padding: 3px 5px; */
}
ul.pagination li:hover a {
  color: var(--nc-lk-tx-2);
  width: 100%;
  height: 100%;
}
#jevents #jevents_body a:hover {
  background-color: unset!important;
}
ul.pagination li.disabled, 
ul.pagination li.disabled:hover {
  border: 1px solid var(--nc-ac-1);
  opacity: 0.4;
}
ul.pagination li.active,
ul.pagination li.active:hover {
  background: var(--nc-bg-small);
  border: 1px solid var(--nc-ac-1);
  opacity: 0.75;
}

ul.pagination li a {
  color: var(--nc-tx-3);
  text-decoration: none;
  font-weight: bold;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
ul.pagination li.active {
  color: var(--nc-lk-tx-2);
}

/* Anpassung Detailseite */
#jevents_body {
  border: none!important;
  background: none!important;
}
/* Anpassung Moduldarstellung */
.mod_events_latest_table {
  border: none;
}
.mod_events_latest_table th, 
.mod_events_latest_table td,
.mod_events_latest_table tr {
  border: none;
  background: none;
  line-height: unset;
}
.mod_events_latest_content,
.mod_events_latest_date,
.mod_events_latest_table span {
  line-height: unset!important;
  vertical-align: middle!important;
}
.mod_events_latest_table tr {
  border: none!important;
}
.mod_events_latest_table a {
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--nc-tx-1);
}

.vhs .mod_events_latest_table a {
  /* font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--nc-tx-1); */
  font-size: 1.35rem;
	margin-bottom: 0.25em;
	line-height: 1.5;
	border: none;
	color: var(--nc-tx-3);
}

.mod_events_latest,
.mod_events_latest_first {
  padding: 0;
}

.mod_events_latest strong,
.mod_events_latest_first strong {
  font-size: 1.1rem;
}

.mod_events_latest h4 ~ p {
  margin-bottom: 0.75rem;
}
span.mod_events_latest_content {
  font-size: 1.1em;
  color: var(--nc-ac-1);
}

/* Modul Kategorieanzeige */

.category-module, .category-module ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Accordion-Funktion bei Newsflash */
.ftStart,
.ftHide {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}
.ftShow {
  max-height: 500px;
  opacity: 1;
}
.ftShow {
  transition: 450ms ease-in-out;
}
.ftHide {
  transition: 450ms ease-in-out;
}

/* cta Button */

.button-cta,
.cta_button {
    width: max-content;
    padding: 0.5rem 0;
    background-color: var(--nc-tx-3);
    border-radius: 5px;
    font-size: 1.1em;
    color: var(--nc-lk-tx-2);
}

.button-cta a,
a.cta_link {
  text-decoration: none;
  color: var(--nc-lk-tx-2);
  width: 100%;
  height: 100%;
  padding: 0.5rem;
}
/* Anpassung der Module für die Gruppen- und sonstigen Kurse */

.moduletable.groupCourses h3 {
  text-decoration: none;
  border: none;
}
.moduletable.miscCourses h4.newsflash-title {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}
.miscCourses .mod-articlesnews__item {
  margin-bottom: 2rem;
}
.groupCourses .mod-articlesnews__item {
  margin-bottom: 0.75rem;
  margin-left: 0.25rem;
}
#position-2 .moduletable.groupCourses {
  margin-bottom: 0.5rem;
}
/*Anpassung Navigation bei den Eventdetails */

.jev_evdt_summary_alt {
  width: 100%;
}
.jev_previousnext {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  min-width: 100%;
}
.jev_evdt_summary_alt .ev_prevrepeat a, .jev_evdt_summary_alt .ev_nextrepeat a {
  background: none!important;
  padding: 0;
  margin: 0;
}
.jev_evdt_summary_alt .ev_prevrepeat, .jev_evdt_summary_alt .ev_nextrepeat {
  margin: 0;
  padding: 0;
}
/* Anpassung Admin-Bereich */
.nav_bar_cell {
  background: none!important;
}
/* Text-Buttons für Downloads etc. */
.moduletable {
  margin-bottom: 1em;
}
a.textButton {
  font-size: 2em;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  line-height: 1;
  width: fit-content;
  margin: 1em auto;
  color: var(--nc-lk-1);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
a.textButton::before,
a.textButton::after  {
  content: 'klick';
  position: absolute;
  font-size: 0.8em;
  color: var(--nc-ac-2);
  z-index: -1;
}
a.textButton::before {
  top: -11px;
  left: -15px;
}
a.textButton::after {
  bottom: -11px;
  right: -15px;
}

/* Sanskrit-Zitat */

.sanskrit-text__normal {
  font-family: 'Jaldi', sans-serif;
  font-size: 1em;
  font-weight: 400;
  margin-bottom: 3em;
}
.sanskrit-zitat__fett {
  font-family: 'Jaldi', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  display: block;
  width: 100%;
}

/* Button Plandownload*/

.klickbutton {
  max-width: 250px;
  align-self: center;
}

/* Button Hygieneregeln & Modulposition 3*/

#position-3 {
  margin-top: -1em;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
}

.moduletable.hygiene_button {
  width: fit-content;
  font-size: 0.6em;
  margin: 0 auto;
}
.moduletable.hygienebutton {
  margin-bottom: 0;
}

/* Buttons für interne Links im Content-Bereich */

#content [href*="/index.php/"]:not(.icons *):not(.mod-menu *):not(.mod-banners *):not(.readmore *):not(.jevbootstrap *), 
a[href*="tel:"] {
  display: block;
  width: max-content;
  padding: 0.2rem 0.3rem;
  background-color: var(--nc-ac-1);
  color: #ffffff;
  font-size: 0.9rem;
  border-radius: 5px;
}

/* Bearbeitungsbuttons */

.icons {
  background: var(--nc-bg-small);
  padding: 1px;
  border-radius: 5px;
  margin: -0.5rem auto 15px;
  font-size: 0.75em;
  text-align: center;
  transition: 500ms;
}
.icons:hover {
  background: var(--nc-bg-small-hover);
  transition: 500ms;
}
.icons a {
  color: var(--nc-lk-tx-2);
  width: 100%;
  display: block;
}

.icons div[role="tooltip"] {
  display: none;
}
.icons + * {
  clear: both;
}

[role="dialog"] {
  margin-bottom: 1rem;
}
[role="dialog"] h3 {
  display: none;
}
.modal-footer {
  display: none;
  justify-content: start;
  gap: 1rem;
}
.joomla-modal.fade {
  display: none;
}
.editor-xtd-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 5px;
}
[data-bs-target="#sourcerer_modal"] {
  display: flex;
  align-items: center;
  gap: 5px;
}
[role="dialog"] .btn-close {
  display: none;
}
[aria-controls="metadata"], [aria-controls="publishing"], [aria-controls="editor"] {
  display: none;
}
div[role=tablist] ul {
  list-style: none;
}
joomla-tab button[aria-expanded=true]:after {
  background: var(--nc-bg-small)!important;
}

/* Hinweisfelder Frontpage */

.badge {
  width: fit-content;
  background-color: #cccccc;
  border-radius: 5px;
  color: #7c7c7c;
  padding: 2px 4px;
  font-size: 0.75em;
}

/* Social Media Logos auf der Kontaktseite */

.social-logos {
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 0.5rem;
}
.social-logos img {
  width: 35px;
}

/* Kursplan */

img[src*="kursplan"] {
  margin-bottom: -2em;
}

/* Media Queries */

@media (max-width: 560px) {
  p[style*="padding-left"] {
    padding-left: unset!important;
  }
}

@media (min-width: 426px) {
  /* Ausblenden des Telefonbuttons */
  a[href*="tel:"] {
    display: none;
  }
}

@media (min-width: 600px) {
  .moduletable.bdy {
    /* position: absolute; */
    right: 80px;
    left: unset;
    top: unset;
    bottom: 20px;
    width: 8%;
  }
}
@media (min-width: 560px) {
  #wrapper {
    grid-template-columns: 200px 100vw;
    grid-template-areas: 
      "header header"
      "navigation content"
      "navigation footer";
  }
  header {
    width: 100%;
  }
  #leftbox {
    padding-top: 25px;
    position: relative;
    z-index: 20;
  }
  #logo {
    width: 320px;
  }
  #main {
    margin-left: 50px;
    background-position: 100% 99%;
    background-size: 25%;
    pointer-events: none;
  }
  #main * {
    pointer-events: auto;
  }
  footer {
    width: calc(100% - 15px);
    margin-top: -10px;
    margin-left: 15px;
    flex-direction: row-reverse;
    justify-content: space-between;
  }
  #spruch {
    margin-top: 0;
  }
  .moduletable.bdy {
    left: 10px;
    bottom: 25px;
    width: 25%;
  }
  .item-image {
    width: 30%;
    float: right;
    margin-left: 0.5em;
  }

  /* Animation Mobilmenu*/

  @keyframes menu_out {
    from {transform: translateX(-210px);}
    to {transform: translateX(-8px);}
  }
  @keyframes menu_in {
    from {transform: translateX(-8px);}
    to {transform: translateX(-210px);}
  }

  
  /* Animation Zufallsbild*/

  .random-image img {
    animation: image-fade 750ms ease-in;
  }
  @keyframes image-fade {
    from  {opacity: 0;}
    to    {opacity: 1;}
  }
  
  #position-2 {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  #position-2 .moduletable {
    width: 100%;
  }
  /* Tooltipps */
  .icons a {
    position: relative;
    overflow: visible;
  }
  .icons a:hover > div[role="tooltip"] {
      top: -2em;
      left: 0;
  }
  div[role="tooltip"] {
      display: block;
      position: absolute;
      top: -999px;
      left: -999px;
      background-color: var(--nc-bg-1);
      opacity: 0.9;
      font-size: 0.9em;
      color: var(--nc-lk-tx-1);
      width: fit-content;
      white-space: nowrap;
      padding: 3px;
      border: 2px solid var(--nc-lk-tx-1);
      border-radius: 3px;
  }
}
@media (min-width: 830px) {
  header {
    margin-right: 0;
  }
  #wrapper {
    width: 100%;
    margin-left: 0;
      grid-template-columns: 200px 1fr;
  }
  #openbutton {
    display: none;
  }
  #leftbox {
    width: 200px;
    overflow: visible;
    z-index: 0;
  }
  footer {
    width: calc(100% + 125px);
    margin-left: -125px;
    margin-top: -25px;
  }
  #picture {
    display: block;
    width: calc(100% + 35px);
    margin-top: 200px;
    margin-left: -20px;
  }
  #picture img {
    width: 100%;
  }
  #mobilnavigation {
    display: none;
  }
  #hauptnavigation {
    display: inline-block;
    width: max-content;
    background-color: #f2f2f2;
    padding: 3px 5px 3px 130px;
    margin-left: -220px;
    margin-bottom: 2em;
    margin-top: 3.75em;
    font-weight: 400;
  }
  #hauptnavigation ul {
    list-style: none;
    color: var(--nc-lk-tx-1);
    display: flex;
    flex-direction: row;
    align-content: flex-end;
    line-height: 1;
    padding: 0;
    margin: 0;
    pointer-events: all;
  }
  #hauptnavigation li {
    padding: 0 8px 0 0;
    margin: 0 8px 0 0;
    border-right: 1px dotted var(--nc-ac-1);
    font-size: 1.15em;
    position: relative;
    cursor: pointer;
    z-index: 3;
  }
  #hauptnavigation li::after {
    content: '';
    display: block;
    position: absolute;
    left: -9px;
    top: -3px;
    width: calc(100% + 10px);
    height: calc(100% + 6px);
    transform: scaley(0);
    transform-origin: top;
    transition: 300ms;
    background-color: var(--nc-ac-3);
    z-index: -1;
  }
  #hauptnavigation li:last-child::after, 
  #hauptnavigation li:last-child:hover::after {
    width: calc(100% + 15px);
  }
  #hauptnavigation li:hover::after {
    transform: scaleX(1);
  }
  #hauptnavigation li:hover, #hauptnavigation li:hover a {
    color: var(--nc-lk-tx-2);
  }
  #hauptnavigation a {
    text-decoration: none;
    color: var(--nc-lk-tx-1);
  }
  #hauptnavigation li:last-child {
    padding-right: 0;
    margin-right: 0;
    border: 0;
  }
  
  #hauptnavigation ul.mod-menu__sub {
    padding: 5px;
    background-color: #f2f2f2;
    list-style: none;
    display: block;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: -8px;
    flex-direction: column;
    word-break: keep-all;
    width: max-content;
    height: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: 200ms 100ms;
    z-index: 18;
    font-size: 0.75em;
    box-shadow: 1px 1px 4px grey;
  }
  #hauptnavigation ul li:hover > ul.mod-menu__sub {
    top: 115%;
    padding: 0;
    transform: scaleY(1);
    height: auto;
  }
  #hauptnavigation ul li:hover > ul.mod-menu__sub a {
    color: var(--nc-lk-tx-1);
  }
  #hauptnavigation ul li:hover > ul.mod-menu__sub a:hover {
    color: var(--nc-ac-1);
  }
  
  #hauptnavigation ul li:hover > ul.mod-menu__sub li:hover > ul.mod-menu__sub {
    top: calc(0% + 5px);
    left: calc(100% - 3px);
    padding: 0;
    height: auto;
    font-size: 0.9em;
    transition: 150ms;
  }
  #hauptnavigation ul.mod-menu__sub li {
    display: block;
    border: none;
    padding: 8px 10px;
    width: 100%;
    border-bottom: 1px dotted var(--nc-ac-1);
    line-height: 1;
    background-color: #f2f2f2;
  }
  #hauptnavigation ul.mod-menu__sub li::after {
    display: none;
  }
  #hauptnavigation ul.mod-menu__sub li, 
  #hauptnavigation ul.mod-menu__sub li a {
    color: var(--nc-lk-tx-1);
  }
  #hauptnavigation ul.mod-menu__sub li:hover,
  #hauptnavigation ul.mod-menu__sub li:hover a {
    color: var(--nc-ac-1);
  }
  #hauptnavigation ul.mod-menu__sub li:last-child {
    margin-bottom: 0;
    border: none;
  }
  #hauptnavigation h3 {
    display: none;
  }
  #hauptnavigation nav {
    margin-bottom: 0;
  }
  #main {
    display: grid;
    grid-template-columns: 1fr 150px;
    grid-template-rows: max-content auto;
    grid-template-areas: 
      "name name"
      "content rightbox";
    margin-left: 10px;
    background: none;
  }
  #rightbox {
    grid-area: rightbox;
    background: var(--nc-bg-4);
    width: 150px;
    height: calc(100% - 50px);
    margin: 25px 0 0 10px;
    z-index: -1;
  }
  #name {
    grid-area: name;
    text-align: right;
    margin-bottom: 3px;
    margin-right: -10px;
  }
  #content {
    grid-area: content;
    background-image: var(--figur);
    background-position: bottom right;
    background-repeat: no-repeat;
    /* background-size: 35%;*/
    overflow: visible;
    margin-top: -1.5em;
    margin-right: -120px;
    margin-bottom: 2em;
    padding-right: 130px;
  }
  .moduletable.bdy {
    bottom: 8px;
    width: 25%;
    margin-right: -100px;
    place-self: start;
  }
  .bdy img {
    margin-bottom: 0;
  }
  .kontakt .com-content-article__body {
    margin-top: 1.5em;
  }
  /* BDY Logo bei den Qualifikationen */

  .com-content-article__body img[alt*="bdy"] {
    margin-right: 2.5rem;
    margin-top: 2.5rem;
  }

}
@media (min-width: 960px) {
  #spruch {
    width: 80%;
  }
  #servicenavigation ul {
    font-size: .75rem;
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-wrap: wrap;
  }
  #servicenavigation ul li {
    margin-left: 3px;
    padding-left: 3px;
  }
  #logobox {
    padding-right: 0;
  }
}
/* input#mobilbutton {
  display: none;
  position: fixed;
  margin-left: 100px;
  margin-top: 20px;
}
 input#mobilbutton:checked ~ #wrapper{
  animation-name: menu_out;
  animation-duration: 500ms;
  animation-fill-mode: both;
}
input#mobilbutton:not(:checked) ~ #wrapper {
  animation-name: menu_in;
  animation-duration: 500ms;
  animation-fill-mode: both;
} */