*{
    font-size: var(--size);
}

@font-face {
  font-family: TimesNewArial;
  src: url(fonts/TimesNewArialVF.woff2) format("woff2 ");
  src: url(fonts/TimesNewArialVF.woff2) format("woff2-variations");
  font-weight: 1 999;
}

:root{
  --color1: #eef1e9;
  --color2: #aaafa2;
  --color3: #232221;

  --green: #2E9B7D;
  --red: #EA4E4E;
  --blue: #416BB2;

  --size: 20px;
}

body {
  font-family: 'TimesNewArial';
  font-variation-settings: 'srff' 15, 'ital' 0;
  font-weight: 30;
  font-size: var(--size);
  color: var(--color3);
  background-color: white;
  overflow: hidden;
}

.wrapAll{
  mix-blend-mode: difference;
}

body, .background-container {
  margin: 0;
  padding: 0;
}

a{
  text-decoration: none;
  color: var(--blue);
}

/* Hintergrund Fotos */

.background-container {
  position: relative;
  height: 100%;
  opacity: 30%;
  filter: contrast(0.5);
  filter: brightness(1.2);
}

.backgroundimg {
  position: absolute;
  width: auto;
  height: 100%;
  opacity: 75%;
}

.overlayimg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 100%;
  opacity: 0.6;
  animation: printEffect 8s ease forwards;
}

/* Hintergrund Animation */

@keyframes printEffect {
  0% {
    visibility: hidden;
    clip-path: inset(100% 0 0 0); 
  }
  10% {
    clip-path: inset(90% 0 0 0);
  }
  20% {
    clip-path: inset(80% 0 0 0);
  }
  30% {
    clip-path: inset(70% 0 0 0);
  }
  40% {
    clip-path: inset(60% 0 0 0);
  }
  50% {
    clip-path: inset(50% 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0); 
  }
}

.fade-out {
  animation-name: fadeOut;
  animation-duration: 3s;
}

@keyframes fadeOut {
  from {
    opacity: 75%;
  }
  to {
    opacity: 0%;
  }
}

/* Button zum Öffnen des Menü-Fensters */

.startbutton{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--size);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 2px var(--color4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.startbutton img{
  filter: invert(1);
  transform: rotate(30deg);
}

.startbutton:hover{
  cursor: pointer;
}


/* Fenster */

.window{
    position: absolute;
    width: 50%;
    min-width: 480px;
    height: 65%;
    left: 50%;
    top:15%;
    transform: translate(-50%, 0);
    border: 1px solid var(--color3);
    border-top: none;
    background-color: white;
    opacity: 98%;
    filter: invert(1);
    box-shadow: 6px 6px 18px rgb(134, 134, 137);
}

.window-body{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 8%;
    bottom: 0;
    width: 100%;
    padding-top: 8px;
}

article{
position: absolute;
top:10%;
bottom: 10px;
width: 100%;
}

/* Fenster Kopfzeile */

.title-bar-controls {
    font-size: var(--size);
    height: 40px;
}

.title-bar{
    background: var(--color1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0px;
    border-bottom: 1px solid var(--color3);
    border-top: 1px solid var(--color3);
    height: 8%;
}

.title-bar-text {
  font-weight: bold;
  color: var(--blue);
  letter-spacing: 0;
  margin-right: 24px;
  margin-left: 8px;
  margin-top: 6px;
}

.title-bar-controls {
  display: flex;
}

.title-bar-controls button {
  padding: 0;
  display: block;
  min-width: 16px;
  min-height: 14px;
  cursor: pointer;
  background-color: var(--color2);
}

.title-bar-controls button:active {
  padding: 0;
}

.title-bar-controls button:focus {
  outline: none;
}

.title-bar-controls button[aria-label="Close"] {
  background-image: url("icon/close.svg");
  background-repeat: no-repeat;
  background-position: top 3.5px left 3.5px;
  background-size: 60%;
  width: 17px;
  height: 17px;
  border: 1px solid var(--color2);
  margin: 3px 4px 0 3px;
  background-color: var(--color1);
}


/* Fenster Menüleiste */
#tabMenu{
  position: absolute;
  top: 2%;
  bottom: 89.6%;
}

menu[role=tablist]{
    display:flex;
    list-style-type:none;
    padding-left:12px;
    position:relative;
    text-indent:0;
    margin: 0px 6px 0px 6px;
}

menu[role=tablist]>li{
    border-top-left-radius:6px;
    border-top-right-radius:6px;
    z-index:1;
    padding-top: 4px;
    border: 1px solid var(--color3);
}

menu[role=tablist]>li>a{
    color: var(--color2);
    margin:8px;
    text-decoration:none}

menu[role=tablist]>li[aria-selected=true]>a{
    color: var(--color3);
}

menu[role=tablist]>li[aria-selected=true]{
    padding-bottom:3px;
    margin-top: -3px;
    margin-left:-3px;
    position:relative;
    z-index:8;
    background-color: var(--color1);
}


/* Fenster Inhalt */

.sunken-panel{
    position: absolute;
    top: 0;
    bottom: 0;
    width: 99%;
    margin: 0 6px 6px 6px;
    overflow-y: scroll;
    background-color: white;
    border: 2px;
    border-style: ridge;
    box-sizing:border-box;
    padding: 6px;
}

#projekte .sunken-panel{
  padding-top: 0%;
}

.projects{
  top: 23%;
  left:60%;
}

.unterseite-box{
  display: flex;
  flex-flow: row wrap;
  position: absolute;
  top: 10%;
  bottom: 0;
  width: 100%;
}

.unterseite-box .sunken-panel{
  bottom: 10%;
}

p{
    padding-left: 4px;
    margin-top: 0%;
    font-size: var(--size);
}


/* Fenster Projekttabelle */

.interactive{
    width: 100%;
    height: auto;
}

td{
    font-size: var(--size);
    padding-right: 20px;
    align-items: center;
}

tr{
    height: 40px;
}

#thfirst{
  width: 55%;
}

table{
  border-collapse:collapse;
  position:relative;
  text-align:left;
  width: 100%;
  font-weight: 50 !important;
}

table>thead>tr>*{
  border-bottom: 1px solid var(--color3);
  background-color: white;
  height:17px;
  padding:0 6px;
  position:sticky;
  top:0;
  font-weight: 600;
  margin-top: -2px;
}

table.interactive>tbody>tr{
  cursor:pointer;
}

table>tbody>tr>*{
  height:14px;
  padding:0 6px;
  border-bottom: 1px solid var(--color3);
}

.portrait{
    width: 350px;
    float: right;
    margin: 20px;
}

.impportrait{
    margin: 20px;
}

.portrait img{
    width: 100%;
}

.impressum-box{
    display: flex;
    flex-direction: row;
}


/* Fenster Fusszeile */

.status-bar{
  position: absolute;
  bottom: 0;
  height: 10%;
  margin: 0px 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1px;
  min-height: 36px;
}

.status-bar-field{
  position: relative;
    margin-left: 10px;
    color: var(--color3);
    height: fit-content;
    margin-top: 14px;
}

.status-bar .title-bar-controls button{
    background-color: var(--color1);
}


/* Link Unterseiten */

.link{
  margin-top: 0px;
    width: 34px;
    height: 34px;
    border-radius: 20px;
    margin-right: 4px;
    margin-left: 5px;
    background-color: #ea4e4eae !important;
    border: none;
  }

/* Printseite */

.print-box{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-top: 8rem;
}

.print-box p{
  padding-top: 20px;
  color: var(--red);
}

#printbutton{
  margin: 0%;
  align-self: center;
  background-color: var(--color1);
  border: 1px solid var(--color3);
  border-radius: 6px;
}

#printbutton:hover{
  cursor: pointer;
  color: var(--red);
}



/* Scrollbar */

::-webkit-scrollbar {
  width: 17px;
}
::-webkit-scrollbar:horizontal {
  height: 17px;
}

::-webkit-scrollbar-corner {
  background: var(--button-face);
}

::-webkit-scrollbar-track {
  background-image: url("icon/scrollbar-background.svg");
}

::-webkit-scrollbar-thumb {
  background-color: var(--color1);
  border: 1px solid var(--color2);
}

::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment,
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment {
  display: block;
  background-color: var(--color1);
  border: 1px solid var(--color2);
}

::-webkit-scrollbar-button:vertical:start {
  height: 17px;
  background-image: url("icon/button-up.svg");
  background-repeat: no-repeat;
  background-position: top 0px left 1px;
  background-size: 100%;
}
::-webkit-scrollbar-button:vertical:end {
  height: 17px;
  background-image: url("icon/button-down.svg");
  background-repeat: no-repeat;
  background-position: top 1px left 1px;
  background-size: 100%;
}

@media print {
  .window {
    display: block !important;
    position: relative !important;
    visibility: visible !important;
    width: 50% !important;
    height: auto !important;
  }

  body{
    display: flex !important;
    flex-flow: row wrap !important;
  }

  .wrapAll{
    mix-blend-mode:normal !important;
  }
}


/* Handy hochkant */

@media (hover:none) and (orientation: portrait) {
                  
  .window{
    position: absolute;
    height: 40%;
    width: 90%;
    left: 50%;
    top:25%;
    transform: translate(-50%, 0);
}

:root{
  --size: 35px;
}

.overlayimg, .backgroundimg {
  width: 100%;
  height: 100%;
}

.title-bar-controls button[aria-label="Close"] {
  width: 35px;
  height: 35px;
}

table>thead>tr>*{
  height:40px;
}

table>tbody>tr>*{
  height:40px;
}

tr{
  height: 50px;
}

}

/* Handy quer */

@media (hover:none) and (orientation: landscape) {
                    .window{
                      position: absolute;
                      height: 90%;
                      width: 70%;
                      left: 50%;
                      top:5%;
                      transform: translate(-50%, 0);
                  }

                  .overlayimg, .backgroundimg {
                    width: 100%;
                    height: 100%;
                  }
          
                  :root{
                    --size: 20px;
                  }
}