/* Reset browser defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

body::-webkit-scrollbar {
  display: none;
}
  
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Main */

body {
  font-family: Arial, sans-serif;
  line-height: 1.4;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  height: 100vh;
  overflow-y: scroll;
}

.content {
  height: auto;
}

:root {
  --bg-color: #2c2c2c;
  --content-bg: #3e3e3e;
  --primary-color: #10a090;
  --accent-color: #ffa500;
  --text-color: #ffffff;
}
  
.light-mode {
  --bg-color: #ebebeb;
  --content-bg: #cfcfcf;
  --primary-color: #ffa500;
  --accent-color: #10a090;
  --text-color: #000000;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

a:hover {
  color: #2c2c2c;
}


/* Fade overlay */
#fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

#fade-overlay.active {
  opacity: 1;
  pointer-events: all;
}
  
/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--content-bg);
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 10px 20px;
  border-bottom: 2px solid var(--primary-color);
  z-index: 10;
}
#page-title {
  padding-left: 224px;
}

#header-right {
  display: flex;
  align-items: center;
}
  
#datetime {
  margin-right: 20px;
  margin-left: 20px;
}
  
/* Theme Switch - Toggle */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--accent-color);
  transition: 0.2s;
  border-radius: 25px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 2.5px;
  background-color: var(--text-color);
  transition: 0.2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(25px);
}
  
/* Content */
#content {
  margin-top: 80px;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
  margin-left: 0;
}

#content.shifted {
  margin-left: 224px;
}

main {
  display: flex;
  width: auto;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.content-box {
  background: var(--content-bg);
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 2px solid var(--primary-color);
  padding: 20px;
  width: 80%;
  border-radius: 10px;
}

.content-box h2 {
  margin-bottom: 20px;
}

.content-box .text {
  text-align: justify;
}
  
.content-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
  
.content-layout .text {
  width: auto;
  margin-right: 20px;
}
  
.content-layout .image img {
  max-width: 100%;
  border: 2px solid var(--accent-color);
}

.icon{
  height: 48px;
  width: 48px;
  border-radius: 12px;
  box-shadow: 0 0 8px 4px #20202080;
  object-fit: fill;
  overflow: hidden;
  margin: 2px 2px 2px 2px;
  transition: 0.5s;
}

.icon:hover{
  box-shadow: 0 0 12px 4px #000000;
  height: 52px;
  width: 52px;
  margin: 0px 0px 0px 0px;
}

.imgLink {
  width: auto;
  min-width: 128px;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 16px;
  box-shadow: 0 0 12px 4px #20202080;
  transition: 0.5s;
}

.imgLink:hover {
  box-shadow: 0 0 16px 4px #000000;
}


/* General list styles */
ul, ol {
  margin: 20px 0;
  padding-left: 20px;
  list-style-position: outside;
  font-size: 24px;
  line-height: 1.4;
}

ul {
  list-style-type: disc;
}

ul li {
  margin-bottom: 10px;
}

ol {
  list-style-type: decimal;
}

ol li {
  margin-bottom: 10px;
}

ul li::marker {
  color: var(--primary-color);
  font-size: 18px;
}

ol li::marker {
  color: var(--accent-color);
  font-size: 18px;
  font-weight: bold;
}

h4, p b {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

p {
  margin-bottom: 15px; 
}

pre {
  display: block;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  padding: 5px;
  font-family: 'Courier New', Courier, monospace;
  max-width: 100%;
  background-color: black;
  color: white;
  border-radius: 4px;
}

/* Styling for the collapsible content */
.content_collaps {
  overflow-y: scroll;
  overflow-x: hidden;
  height: 16vh;
  transition: height 0.3s ease-out;
}

.collapsible {
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.collapsible .symbol {
  font-size: xx-large;
  font-weight: bold;
  margin-left: 10px;
  color: #ccc;
  transition: transform 0.3s ease;
}
.collapsible.active .symbol {
  transform: rotate(45deg);
  color: #fff;
}
.content_collaps::-webkit-scrollbar {
  width: 8px;
}
.content_collaps::-webkit-scrollbar-thumb {
  background: var(--text-color);
  border-radius: 4px;
}
.content_collaps::-webkit-scrollbar-track {
  background: var(--bg-color);
}
.content_collaps.open {
  overflow-y: none;
  height: auto;
}


/* Styling table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}
table td:first-child {
  width: 40%;
  text-align: left;
  padding: 10px;
  vertical-align: top;
  color: var(--text-color);
  font-weight: bold;
}
table td:last-child {
  width: 60%;
  text-align: left;
  padding: 10px;
  vertical-align: top;
  color: var(--text-color);
}
table tr {
  border-bottom: 1px solid #222222;
}
table tr:nth-child(even) {
  background-color: #1a1a1a10;
}

table tr:nth-child(odd) {
  background-color: #10101010;
}

/* footer */

#privacy-notice {
  position: fixed;
  bottom: 20px;
  left: 58%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0);
  color: white;
  padding: 15px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1s ease;
}

/* Footer */
footer {
  text-align: center;
  background: var(--content-bg);
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 10px;
  position: sticky;
  bottom: 0;
  width: 100%;
  border-top: 2px solid var(--primary-color);
}

/* === HAMBURGER BUTTON === */
#menu-toggle {
  display: none; /* Nur mobil sichtbar */
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 30px;
  background: none;
  border: none;
  color: var(--text-color);
  z-index: 50; /* Über Sidebar */
  cursor: pointer;
}

/* === SIDEBAR STANDARD === */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 224px;
  background: var(--primary-color);
  padding: 10px;
  padding-top: 96px; /* Abstand nach oben */
  overflow-y: auto;
  z-index: 20;
  transition: transform 0.3s ease;
}

#sidebar div {
  list-style: none;
  padding-top: 96px;
}

/* === DESKTOP === */
@media (min-width: 1025px) {
  #content {
    margin-left: 224px;
  }

  #content.shifted {
    margin-left: 224px;
  }

  #sidebar {
    transform: translateX(0);
  }

  #menu-toggle {
    display: none;
  }
}

/* === MOBILE === */
@media (max-width: 1024px) {
  #content {
    margin-left: 0;
  }

  #content.shifted {
    margin-left: 224px; /* Nur wenn Sidebar geöffnet */
  }

  #sidebar {
    transform: translateX(-100%);
  }

  #sidebar.active {
    transform: translateX(0);
  }

  #menu-toggle {
    display: block;
  }
}



/*

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

*/