:root {
  --rahmen: #025159;
  --bunt: #04bfbf;
  --hintergund: #038c8c30;
  --hellhintergund: #bf926b;
  --weitere: #8c452b;
  --dunkel: #025159;
  --hell: #bef5f5;
  --superhell: rgb(246, 245, 239);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  /* font: 1em/1.4 Source Sans Pro, Calibri, sans-serif; */
  font-size: 1em;
  line-height: 1.6em;
  /* background: var(--superhell); */
  /* background: url(../Icons/hg9.webp) repeat 0 0; */
  /* background: url(../Icons/Element16.webp) repeat 0 0; */
  /* background-size: cover; */

  background-color: #5f4879;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.3) 6px,
      rgba(255, 255, 255, 0.2) 12px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 7px,
      rgba(255, 255, 255, 0.2) 2px,
      rgba(255, 255, 255, 0.3) 10px
    );

  color: var(--dunkel);
  font-family: hatch, serif;
  font-weight: 300;
  font-style: normal;
}

p,
li {
  font-size: 1.2em;
}
nav {
  height: 13em;
  background: var(--hintergund) url(../Icons/1sibby.png) no-repeat 5px 0px;
  background-size: 200px;
}
nav ul {
  padding-top: 70px;
  display: flex;
  list-style-type: none;
}
nav li {
  width: max-content;
  padding: 0 1em;
}
a,
a:visited {
  color: var(--dunkel);
}
.frame-vollebreite {
  font-size: 1.2em;
  background-color: var(--hintergund);
  color: var(--dunkel);
  text-align: center;
  padding: 0.5em;
  height: 60vh;
}
summary {
  font-size: 1.4em;
  font-style: italic;
  max-width: 80vw;
}
details {
  border: var(--dunkel) 1px solid;
  padding: 0.5em;
}
@media (min-width: 40em) {
  nav {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    justify-items: center;
  }
  nav ul {
    padding: 22px 0 0 260px;
  }
  .frame {
    display: grid;
  }
  .frame-vollebreite {
    justify-content: center;
    justify-items: center;
  }
  p,
  ul {
    max-width: 38em;
  }
  .frame-default {
    display: grid;
    max-width: 60em;
    padding-left: 2em;
    padding-right: 2em;
    grid-template-rows: auto auto;
    gap: 0 2em;
    /* max-width: 40em; */
    margin: 2em auto;
  }
  .frame-default:nth-of-type(odd) {
    grid-template-columns: [frame-default-header-start] 1fr [frame-default-header-end frame-default-body-start] 1fr [frame-default-body-end];
    border-bottom: 12px var(--superhell) solid;
  }
  .frame-default:nth-of-type(even) {
    grid-template-columns: [frame-default-body-start] 1fr [frame-default-body-end frame-default-header-start] 1fr [frame-default-header-end];
    border-bottom: 12px var(--superhell) solid;
  }
  .frame-default header {
    grid-column: frame-default-header;
    grid-row: 1 / -1;
    /* font-family: Futura; */
    font-family: "tablet-gothic-narrow", serif;
    font-weight: 900;
    font-style: normal;
    text-transform: uppercase;
  }
  .frame-default:nth-of-type(odd) header {
    text-align: right;
  }
  .frame-default:nth-of-type(even) header {
    text-align: left;
  }
  .frame-default:nth-of-type(even) p {
    text-align: right;
  }
  .frame-default:nth-of-type(odd) p {
    text-align: left;
  }
  .frame-default header p {
    margin: 1em 0;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: none;
  }

  .frame-default > * {
    grid-column: frame-default-body;
  }
}

/* Allgemeine Stile für das Menü */
.main-menu {
  display: flex;
  list-style: none;
}

.main-menu li {
  margin-right: 20px;
  position: relative;
}

/* Das Untermenü ist standardmäßig verborgen */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background-color: #fff;
}

.main-menu li:hover > .submenu {
  display: block; /* Untermenü bei Hover anzeigen (für Desktop) */
}

/* Mobile Stile */
@media (max-width: 768px) {
  .main-menu {
    display: none;
    flex-direction: column;
  }

  /* Hauptmenü-Checkbox ausblenden */
  .menu-toggle {
    display: none;
  }

  /* Wenn die Hauptmenü-Checkbox aktiviert ist, wird das Hauptmenü angezeigt */
  .menu-toggle:checked + .menu-icon + nav .main-menu {
    display: flex;
  }

  .main-menu li {
    margin: 10px 0;
    position: relative;
  }

  .submenu {
    position: static;
    padding-left: 20px;
    background-color: transparent;
  }

  /* Die Checkbox für das Untermenü auf mobilen Geräten unsichtbar machen, aber aktiv lassen */
  .submenu-toggle {
    position: absolute;
    opacity: 0;
    z-index: -1;
  }

  /* Das Untermenü anzeigen, wenn die zugehörige Checkbox aktiviert ist */
  .submenu-toggle:checked ~ .submenu {
    display: block;
  }

  /* Label für das Untermenü (z.B. das Pluszeichen) */
  .submenu-icon {
    display: inline-block;
    cursor: pointer;
    font-size: 18px;
    padding-left: 10px;
  }
}

/* Stile für Desktops (größere Bildschirme) */
@media (min-width: 769px) {
  .submenu-toggle,
  .submenu-icon {
    display: none;
  }
}
