@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display:swap;
  src: url(../font/robotomono.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-black: #000000;
  --color-gray-1: #121212;
  --color-gray-2: #1e1e1e;
  --color-gray-3: #2c2c2c;
  --color-gray-4: #aaaaaa; /* Text color */
  --color-gray-5: #cccccc;
  --color-orange: #ff6b00; /* Links */
  --color-orange-light: #ff8c3a;
  --color-orange-dark: #cc5500;
  --color-red: #ff3300; /* Bold text */
  --color-brown: #ddbd10; /* Italic text */
}

* {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  background-color: var(--color-gray-1);
  color: var(--color-gray-4);
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
}

::selection{  
  background-color: var(--color-orange-dark);
  color: var(--color-black);
}

.sidebar {
  width: 240px;
  padding: 35px 20px;
  position: fixed;
  top: 0;
  height: 100%;
  background-color: var(--color-gray-2);
  left: 20px;
}

.sidebar img {
  max-width: 80%;
  height: auto;
  margin:0 auto;
  padding:0;
  display: block;
  transition: transform 0.3s ease;

}

.sidebar img:hover {
  animation: bounce 0.8s ease;
}

.sidebar h1 {}
.sidebar h1, .sidebar .head {
  font-size: 24px;
  color: var(--color-orange);
  text-align:center;
  display:block;
  font-weight:bold;
  margin:0 0 10px 0;
  padding:0;
}

.sidebar h1 a, .head a {margin:0 !important; padding:0 !important;}


@keyframes bounce {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-5px); }
  40%  { transform: translateY(5px); }
  60%  { transform: translateY(-2px); }
  70%  { transform: translateY(2px); }
  80%  { transform: translateY(-1px); }
  90%  { transform: translateY(1px); }
  100% { transform: translateY(0); }
}



.search-box {
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-gray-3);
  background-color: var(--color-gray-1);
  color: var(--color-gray-4);
  border-radius: 4px;
  font-family: 'Roboto Mono', monospace;
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-gray-3);
}

.stats {
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--color-gray-4);
}

.stats div {
  margin-bottom: 8px;
}

.main-content {
  margin-left: 0;
  padding: 20px;
  left: 260px;
  display: flex;
  position: absolute;
  width: 100%;
  max-width: 640px;
}

.container {
  width: 100%;
  max-width: 640px;
}

a {
  text-decoration: none;
  color: var(--color-orange);
  transition: color 0.2s ease;
  border-radius: 2px;
}

a:hover {
  color: var(--color-orange-light);
  text-decoration: underline;
}

h1 {font-size: 13px; color: var(--color-orange-dark); transition: color 0.2s ease;}
h2 {font-size: 13px; color: var(--color-orange-dark); transition: color 0.2s ease;}
h3 {font-size: 13px; color: var(--color-orange-dark); transition: color 0.2s ease;}

strong, b {
  color: var(--color-red);
  font-weight: bold;
}

em, i {
  color: var(--color-brown);
  font-style: normal;
}

.post, .post * {
  margin: 0;
  padding: 0;
}

.post {
  margin-bottom: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-bottom: 1px solid var(--color-gray-3);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin:0;
  margin-top: 0 !important;
  padding:0;
  padding-top: 0 !important;
}

.post-content {
  color: var(--color-gray-4);
  line-height: 1.5;
  padding:0;
  margin:0;
}

.post-content p {margin:0; margin-bottom:15px; padding:0;}

.post-content ul {
  list-style-type: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.post-content ul li {
  display: flex;
  align-items: flex-start; /* stellt sicher, dass die items korrekt ausgerichtet sind */
}

.post-content ul li:before {
  content: "▒ ";
  color: var(--color-orange);
  flex-shrink: 0; /* verhindert, dass das symbol skaliert wird */
  margin-right: 5px; /* sorgt für abstand zwischen symbol und text */
}

.post-content a {
  text-decoration: none;
  color: var(--color-black);
  background-color: var(--color-orange-dark);
  transition: color 0.2s ease;
  padding:0 3px;
}

.post-content a:hover {
    color: var(--color-gray-3);
}

.related-posts {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}
.related-posts h3 {
    margin-bottom: 15px;
}
.related-posts ul {
    padding-left: 20px;
}
.related-posts li {
    margin-bottom: 8px;
}

.meta {
  font-size: 12px;
  color: var(--color-gray-4);
  display: flex;
  align-items: center;
  gap: 5px;
}

button {
  background: none;
  border: 0 none;
  color: var(--color-orange);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

button:hover {
  color: var(--color-orange-light);
}

button, a {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
  font-size:12px;
}

.pagination a, .pagination .active {
  padding: 3px 8px !important;
  border-radius: 4px;
  background-color: var(--color-gray-2);
  border: 1px solid var(--color-gray-3);
  color: var(--color-gray-4);
}

.pagination a:hover {
  background-color: var(--color-gray-3);
}

.pagination .active {
  background-color: var(--color-orange);
  color: var(--color-gray-1);
  font-weight: bold;
}

.pointer {
  cursor: help;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-2);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-orange);
  border-radius: 4px;
}

:root {
  scrollbar-color: var(--color-orange) var(--color-gray-2);
  scrollbar-width: thin;
}

/* Code blocks */
pre, code {
  background-color: var(--color-gray-1);
  border: 1px solid var(--color-gray-3);
  border-radius: 3px;
  padding: 5px;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  color: var(--color-gray-5);
  margin-bottom:15px !important;
}


/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Blockquotes */
blockquote {
  border-left: 3px solid var(--color-orange);
  padding-left: 10px;
  margin-left: 10px;
  font-style: italic;
  color: var(--color-brown);
}

.recent-posts {text-align:center;}
.recent-posts ul {list-style-type: none; margin: 0; padding: 0;}
.recent-posts ul li {}
.recent-posts ul li:before {content: "🎃 "; color: var(--color-orange);} 

/* Mobile responsiveness */
@media (max-width: 1120px) {
  .sidebar {
    left: 0;
  }
  
  .container {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--color-gray-3);
    padding: 15px;
  }
  
  .main-content {
    width: 100%;
    padding: 15px;
    position: relative;
    left: 0;
  }
  
  .container {
    margin-left: 0;
  }

  .recent-posts {display:none;}
}