:root {
--border-radius:15px;
}
body {
  font-family: system-ui, sans-serif;
  margin: auto;
  background: #f7f7f7;
  color: #202020;
  transition: background 0.3s, color 0.3s;
}

.container {
  display: flex;
  flex-direction: row;
  height: 100vh; /* full viewport height */
  width: 100vw;  /* full viewport width */
  overflow: hidden;
}

footer {
    margin-bottom: 30px;
}

.footer-logo {
  display: block;
  margin: 0 auto 0.5rem auto;
  width: 40%;
  object-fit: contain;
}

#posts article {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  display: block;
  padding-bottom: 10px;
  object-fit: contain;
}

.roter-knopf {
    background-color: #cc0000;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    max-width: 90%;
    margin: 0 auto; /* horizontal zentrieren */
    display: block;  /* nötig, damit margin auto wirkt */
}

  .roter-knopf:hover {
    background-color: darkred;
  }

/* Sidebar with fixed size */
.sidebar {
    width: 250px;        /* Fixed sidebar width */
  height: 100%;        /* Full height of the container */
  box-sizing: border-box;
  overflow-y: auto;    /* Scroll only sidebar content if it overflows */
  flex-shrink: 0;      /* Prevent sidebar from shrinking */
  display: flex;
  flex-direction: column;
  padding: 15px;
  position: sticky;
  top: 0;
}

.content {
  flex-grow: 1;
  overflow-y: auto;
  height: 100vh;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

article {
  margin: 0 auto 2rem auto;
  padding: 1.5rem;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 70%;
}

article h2 {
  margin-top: 20px;
}

h2 {
  margin-top: 0;
  text-align: center;
}

h1{text-align: center; font-size:35px;}


strong { font-weight: 600; }
em { font-style: italic; }
u { text-decoration: underline; }

ul {
  margin: 0 0 1rem 1.5rem;
  padding-left: 1rem;
}

li { margin-bottom: 0.3rem; }

img.inline-image {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  margin: 0 0.3rem 0 0;
}

video {
  max-width: 100%;
  margin: 1rem 0;
}

img.inline-image,
video {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--border-radius);
}

a {
  color: #0366d6;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #101010;
    color: #e4e4e4;
  }

  article {
    background: #181818;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  }

  a { color: #00a2df; }
	}


.menu-logo {
  display: block;
  margin: 0 auto 0.5rem auto;
  width: 100%;
  object-fit: contain;
}

/* Responsive layout: sidebar as top bar */
@media (max-width: 1200px) {
  .container {
    flex-direction: column;
    height: auto; /* remove fixed height in column layout */
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
	overflow-x: hidden;
	box-sizing: border-box;
  }
  h1{font-size:40px;}
  h2{margin:5px;}
  li{font-size:20px;}
  .roter-knopf {
    padding: 30px 10px;
	margin: 0;
	font-size:20px;
}
  .content {
    height: auto;
  }
  article {
    width: 90%;
  }
  .menu-logo {
    display: block;
    margin: 0 auto 0.5rem auto;
    width: 25%;
	min-width: 100px;
    object-fit: contain;
  }
  
  .footer-logo {
	width: 60%;
	}
}
