
body {color: var(--text,white); background-color: var(--background); font-family: arial, Helvetica, sans-serif;
    font-size: 1rem;
    margin: 0;
    max-width: 80rem;
    padding: 0;}


header {
  display:flex;
  flex-direction:row;
  justify-content: space-between;
  width: 100%;
  position:sticky;
  background-color: var(--header-background); /*url(Drache_a.jpeg)*/
  height: fit-content;
  top:0px;
  z-index: 10000;
  padding: 7px 16px 8px 16px;
  box-sizing: border-box;
  align-items: center;
  forced-color-adjust: none;

  }

div.headerRight { }
div.headerRight a img {width:24px;}
@media (pointer:coarse){
div.headerRight a img {width:44px;}}
.headerLeft {  font-size: clamp(1.2rem,10vw,3rem); padding-left: 16px; margin: 4px 0;}
/*div.headerFrame {border-style: dashed; position:sticky;}*/
/*div.headerTitle { font-size: 6rem; color:var(--black,white); background-color: gray; width: fit-content;background-blend-mode: color-burn; position:sticky; }*/

/* link definitions */
a:link          { font-weight:bold; color: var(--link,green); text-decoration:none; }
a:visited       { font-weight:bold; color: var(--visited,green); text-decoration:none; }
a:active        { font-weight:bold; color: var(--link,green); text-decoration:underline; background-color: var(--light); }
a:hover         { font-weight:bold; color: var(--hover,green); text-decoration:underline; background-color: var(--light); }
a:link.small          { font-weight:normal; font-size:normal; }
a:visited.small        { font-weight:normal; font-size:normal;}
a:active.small         { font-weight:normal; font-size:normal; }
a:hover.small          { font-weight:normal; font-size:normal; }

main {
  min-height: 1500px;
  color:var(--black,white);
  background-color: var(--main-background);
  position:relative;
  top: 0.5rem;
  font-family: arial, Helvetica, sans-serif;
  line-height: 150%;
  padding-left: 1rem;
  padding-right: 1rem;
}

h1, h2, h3 {color:var(--black,white);margin: 32px 0 16px 0;}
h1 {font-size: 2rem; padding-top: 8px; }


.flexBox {
  display: flex;         /* Use flexbox for layout */
  flex-direction: row;
  flex-wrap: wrap;       /* Allow items to wrap to the next line */
  justify-content: space-around; /* Distribute items evenly with space around them */
  gap: 10px;             /* Add a small gap between items */
  padding: 10px;         /* Optional: Add padding to the container */
  box-sizing: border-box;/* Ensure padding is included in the total width/height */
  align-content:space-around;
}

.flexElement {
  display: flex;
  gap: 1rem;
}


img {
  max-width: 100%;       /* Ensure images scale within their container */
  height: auto;          /* Maintain aspect ratio */
  display: block;        /* Remove bottom margin caused by inline elements */
  box-sizing: border-box;/* Ensure border is included in the total width/height */
  text-align: center;

}

footer {
  position: relative;
  display: block;
  text-align: center;
  padding-top: 2rem

}
/* hamburger navigatiom */
nav.hamburger {
    position: sticky;
    right: 0;
    top: 5rem;
    width: 15rem;
    float: right;
    height: 0;
    z-index: 109000;


}
body:not(:has(a#showMenu:target)) nav.hamburger{display: none;}
body:not(:has(a#showMenu:target)) a#closeMenu{display: none;}
nav ul.menu {
    padding-left: 2rem;
    padding-top: 1rem;
    margin-top: -5px;
    border: 3px solid var(--background,green);
    background-color: var(--box-background,#303);
}
nav ul.menu li {
    position: relative;
    color: black;
    list-style: none;
    margin-left: 1.5rem;
    white-space: nowrap;
    padding-top: 0.3rem

}
nav ul.menu li::before {
    content: " ";
    width: 0.9rem;
    height: 0.7rem;
    background: var(--highlight,#182642);
    background-image: linear-gradient(19deg, transparent 45%, var(--a-background,#74a0f7 ) 65%), linear-gradient(161deg, transparent 45%, var(--a-background,#74a0f7 ) 65%);
    clip-path: polygon(0 0, 0% 100%, 100% 50%);
    display: inline-block;
    margin-right: 0.5rem;
    position: absolute;
    left: -1.5rem;
    top: 0.4rem;
}
@media ( forced-colors:active ) and ( prefers-contrast:more ){
  background-img: url(dark.png);
}

ul.menu li details {
    margin-top: -1.5rem;
    margin-bottom: 0.3rem;
}

ul.menu li details summary {
    position: relative;
    margin-left: 80%;
    cursor: pointer;
    padding: 0 0 0 10px;
    color:white;
    line-height: 180%
}


/* Small screens */
@media screen and (max-width: 4768px) {
    nav.hamburger a img {
        padding: 5px;
        float: right;
    }

    /* default <a id="showMenu"> is shown */
    a#showMenu:not(:target) {
        display: block;
    }
    /* click on Hamburger: <a id="showMenu"> disappears */
    a#showMenu:target{
        display: none;
    }
    /* click on Hamburger: <a id="showMenu"> disappears */
    a#closeMenu:target{
        display: none;
    }
    /* default <a id="showMenu"> is shown */
    a#closeMenu:not(:target) {
        display: block;
    }


    nav.hamburger ul.menu {
        transition: all 0.6s ease;
    }
    nav.hamburger a:target ~ ul.menu {
        display: block;
        position: relative;
        /* left: 0; */
        top: 3.8rem;
        margin-left: 0;
        padding: 5px;
        text-align: left;
    }
}
