/* Google Fonts einbinden */
@import url('https://fonts.googleapis.com/css2?family=Gloock&display=swap');

/* Allgemeine Stile */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #161616;
  color: #ffffff;
  margin: 0;
  padding-right: 10px;
  padding-left: 10px;
}

/* Positionierung der Suchleiste und Kategorienleiste im Header */
header {
  display: flex;
  justify-content: center;
  color: #ffffff;
  padding: 10px 0;
  font-family: Gloock, serif;
  font-size: x-large;
  text-align: center;
  margin-top: 15px;
  position: relative;
}

.header-container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  position: relative;
}

#menu-toggle {
  background-color: #00000000;
  color: #ffffff;
  border: none;
  padding-left: 10%;
  cursor: pointer;
  font-size: 2.5em;
  position: absolute;
  left: 10px;
}

#menu-toggle:hover {
  color: rgb(236, 236, 236);
}

.hidden {
  display: none;
}

#search-bar {
  width: 90%;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  background-color: #161616;
  color: #ffffff;
  padding: 8px;
  box-sizing: content-box;
  border-radius: 5px;
}

header h1 {
  font-family: 'Gloock', serif;
  font-size: 2em;
  margin: 0 20px;
}

#category-nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

#category-nav a {
  margin: 0 10px;
  text-decoration: none;
  color: white;
  font-size: 1em;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#category-nav a:hover {
  background-color: #333;
}

header .search-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-right: 30%;
}

.articles-container {
  max-width: 1200px;
  margin: auto;
  padding: 10px;
  background-color: #161616;
}

/* Stile für den neuesten Artikel */
.latest-article {
  display: flex;
  flex-direction: row;
}

body hr {
  color: white;
  margin-bottom: 25px;
  margin-top: 25px;
}

.latest-article-content h1 {
  margin-top: 0;
  font-size: 2em;
  color: #ffffff;
  font-family: 'Gloock', serif;
}

.latest-article-content p {
  margin: 10px 0;
  line-height: 1.6;
}

.latest-article-content a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 10px;
  background-color: #000000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid white;
  transition: 0.3s linear;
}

.latest-article-content a:hover {
  background-color: #ffffff;
  color: #000000;
  transition: 0.3s linear;
}

.latest-article-content {
  padding: 50px;
  width: 400%;
  padding-top: 0;
}

.latest-article-image img {#category-filter {
  float: right;
}
  width: 600px;
  max-width: 600px;
  border-radius: 5px;
  padding-bottom: 0;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Stile für ältere Artikel */
.older-articles .article {
  display: flex;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #161616;
  border-radius: 15px;
  transition: background-color 0.3s;
}

.older-articles .article:hover {
  background-color: #000000;
}

.article-image img {
  width: 300px;
  height: auto;
  margin-right: 50px;
  border-radius: 5px;
}

.article-content {
  flex: 1;
}

.article-content h2 {
  margin-top: 0;
  font-size: 1.5em;
  color: #ffffff;
  font-family: 'Gloock', serif;
}

.article-content p {
  line-height: 1.6;
}

.article-content a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 10px;
  background-color: #000000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid white;
  transition: 0.3s linear;
}

.article-content a:hover {
  background-color: #ffffff;
  color: #000000;
  transition: 0.3s linear;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

.article {
  padding: 10%;
  padding-top: 0;
  padding-bottom: 20px;
}
.gallery img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#article-container .article-image img {
  width: 1100px;
  height: auto;
  display: block;
  margin: 20px;
}

#article-container p {
  line-height: 1.4;
  margin-right: 25%;
  margin-left: 1%;
}

#article-container h1 {
  margin-bottom: 20px;
  font-size: 6.5em;
  font-family: 'Bondi','Helvetica Neue';
  text-align: center;
  position: relative;
  z-index: 1;
}

.title-container {
  position: relative;
  overflow: hidden;
}

.title-container::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 200%;
  left: 0%;
  top: 50%;
  border-radius: 50%;
  background-color: blue;
  filter: blur(20px);
  z-index: -1;
}

.title-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://momentsingraphics.de/Media/BlueNoise/WhiteNoiseDithering.png");
  opacity: 0.5;
  mix-blend-mode: overlay;
  z-index: -1;
}

#article-container .article-meta {
  margin-bottom: 15px;
  font-size: 0.9em;
  color: #666;
}

.comments-section {
  margin-top: 40px;
}

.comments-section h2 {
  margin-bottom: 20px;
  font-size: 1.5em;
}

.comment {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.comment-author {
  font-weight: bold;
  margin-bottom: 5px;
}

.comment-content {
  line-height: 1.4;
}

.like-button, .dislike-button {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  margin-right: 5px;
  padding: 10px;
  padding-bottom: 30px;
}

.dislike, .like {
  background-color: #161616;
  color: white;
  border-radius: 3px;
  border: 0 solid #161616;
  margin-bottom: 15px;
  margin-left: 5px;
}

.dislike, .like:hover {
  cursor: pointer;
}

.comment_speichern {
  border: 1px solid white;
  color: white;
  background-color: #161616;
  border-radius: 5px;
  transition: 0.3s linear;
  display: inline-block;
  margin-top: 5px;
  padding: 5px 10px;
}

.comment_speichern:hover {
  background-color: white;
  color: #000000;
  transition: 0.3s linear;
  cursor: pointer;
}

.comments_area, .name {
  background-color: #161616;
  color: white;
  margin-right: 2000px;
  height: 40px;
  width: 90%;
  border-top: none;
  border-left: none;
  border-right: none;
}

.comment-date {
  font-size: 0.8em;
  color: #999;
  margin-top: 5px;
  display: block;
}

.latest-article-content p {
  margin: 10px 0;
  line-height: 1.6;
}

.latest-article-content p strong {
  display: inline-block;
  margin-right: 10px;
}

.article-content p strong {
  display: inline-block;
  margin-right: 10px;
}

.main-article-image {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
}

.gallery-container {
  margin-top: 20px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit_main {
  padding: 10px;
  margin: 10px;
  margin-left: 50px;
  margin-right: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(245, 245, 245, 0.062);
  border: 1px solid white;
  border-radius: 5px;
}

.submit_main {
  font-size: x-large;
  font-family: 'Courier New', Courier, monospace;
  -webkit-box-shadow:0px 0px 218px 0px rgba(255,255,255,1);
  -moz-box-shadow: 0px 0px 218px 0px rgba(255,255,255,1);
  box-shadow: 0px 0px 118px 0px rgba(255,255,255,1);
}

#title {
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid #ffffff;
  border-radius: 5px;
  padding: 10px;
  padding-right: 80%;
  background-color: #161616;
  transition: 0.3s linear;
  color: #fff;
}

#title:hover {
  background-color: #ffffff1a;
  color: #ffffff;
  transition: 0.3s linear;
}

.submit_header {
  font-family: Courier, monospace;
  font-size: xxx-large;
  color: #ddd;
  transition: 0.3s linear;
  background-color: #16161600;
}

.submit_header:hover {
  color: #fff;
  transition: 0.3s linear;
}

.submit_button {
  margin-top: 5px;
  padding: 5px 10px;
  background-color: #000000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid white;
  transition: 0.3s linear;
}

.submit_button:hover {
  background-color: #ffffff;
  color: #000000;
  transition: 0.3s linear;
}

.back-link {
  color: white;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  font-size: large;
}

.back-link:hover {
  color: #ddd;
  text-decoration: underline;
  transition: all 0.3s ease-in-out;
}

.main-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sidebar {
  width: 300px;
  position: fixed;
  right: -325px;
  top: 130px;
  bottom: 130px;
  overflow-y: auto;
  padding: 25px;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border: 1px solid rgb(80, 80, 80);
  border-right: 0;
  transition: right 0.3s ease-in-out;
  z-index: 5;
  background-color: #161616;
}

.sidebar.show {
  right: 0;
}

.main-content:hover + .sidebar {
  right: 0;
}

.sidebar:hover {
  right: 0;
}
.sidebar h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: system-ui;
  font-size: x-large;
}

.sidebar hr {
  color: white;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 15px;
}

.sidebar a {
  color: rgb(201, 201, 201);
  text-decoration: none;
  transition: 0.3s linear;
  line-height: 1.5;
}

.sidebar a:hover {
  color: white;
  transition: 0.3s linear;
}

.sidebar-right {
  width: 300px;
  position: fixed;
  left: -325px;
  top: 130px;
  bottom: 130px;
  overflow-y: auto;
  padding: 25px;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border: 1px solid rgb(80, 80, 80);
  border-left: 0;
  transition: left 0.3s ease-in-out;
  z-index: 5;
  background-color: #161616;
}

.sidebar-right.show {
  left: 0;
}

.main-content:hover + .sidebar-right {
  left: 0;
}

.sidebar-right:hover {
  left: 0;
}
.sidebar-right h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: system-ui;
  font-size: x-large;
}

.sidebar-right hr {
  color: white;
}

.sidebar-right ul {
  list-style-type: none;
  padding: 0;
}

.sidebar-right li {
  margin-bottom: 15px;
}

.sidebar-right a {
  color: rgb(201, 201, 201);
  text-decoration: none;
  transition: 0.3s linear;
  line-height: 1.5;
}

.sidebar-right a:hover {
  color: white;
  transition: 0.3s linear;
}

.popular_date {
  color: #999;
}

footer {
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}

footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  flex-direction: column;
  align-items: center;
}

footer li {
  margin-bottom: 10px;
}

footer a {
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

footer a:hover {
  color: #ddd;
}

.footer-left {
  float: left;
  top: 0;
  margin-left: 2%;
}

.footer-center {
  text-align: center;
  top: 0;
}

.footer-right {
  float: right;
  top: 0;
  margin-right: 2%;
}

#search-bar-mobile {
  border: 1px solid #ffffff;
  border-radius: 5px;
  font-size: 1em;
  color: #ffffff;
  text-align: left;
  width: calc(100% - 55px);
  box-sizing: border-box;
  padding: 5px;
  background-color: #333;
  position: absolute;
  top: 10px;
  left: 55px;
  z-index: 1;
}

#kategorien-mobile {
  border: 1px solid #ffffff;
  border-radius: 5px;
  font-size: 1em;
  color: #ffffff;
  text-align: left;
  padding-right: 45px;
  box-sizing: border-box;
  padding: 10px;
  background-color: #333;
  position: absolute;
  cursor: pointer;
  height: 50px;
  top: 15px;
  left: 70px;
} 

#search-bar-mobile-div {
  display: none;
}

#kategorien-mobile-auswahl {
  display: none;
}

#search-mobile {
  display: none;
  border: none;
  background-color: #161616;
  cursor: pointer;
  font-size: 1.2em;
  color: #ffffff;
  position: absolute;
  left: 10px;
  z-index: 2;
}

.header-placeholder {
  height: 2em; /* Gleiche Höhe wie die Überschrift */
  visibility: hidden; /* Platzhalter unsichtbar machen */
}

/* Light Mode */
body.light-mode #kategorien-mobile {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #aaaaaa;
}

body.light-mode #search-bar-mobile {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #aaaaaa;
}

body.light-mode #search-mobile {
  background-color: #ffffff;
  color: #000000;
}

body.light-mode {
  background-color: #ffffff;
  color: #000000;
}

body.light-mode header {
  background-color: #ffffff;
  color: #000000;
}

body.light-mode header h1 {
  color: #000000;
}

body.light-mode .latest-article-content h1 {
  color: #000000;
}

body.light-mode .title-container::before {
  background-color: rgb(96, 107, 255);
  filter: blur(20px);
  
}

body.light-mode .title-container::after {
  opacity: 0.2;
}

body.light-mode header #menu-toggle {
  color: #000000;
}

body.light-mode .articles-container {
  background-color: #ffffff;
}

body.light-mode h2 {
  color: #000000;
}

body.light-mode .title-container h1 {
  color: #292929;
}

body.light-mode .older-articles .article {
  background-color: #ffffff;
  border: 1px solid #00000000;
  border-radius: 0;
}

body.light-mode .older-articles .article:hover {
  border: 1px solid #000000;
  border-radius: 10px;
  transition: 0.3s linear;
}

body.light-mode .latest-article-content a,
body.light-mode .article-content a {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

body.light-mode .latest-article-content a:hover,
body.light-mode .article-content a:hover {
  background-color: #000000;
  color: #ffffff;
}

body.light-mode .sidebar {
  background-color: #f5f5f5;
  color: #000000;
  border: 1px solid #000000;
}

body.light-mode .sidebar a {
  color: #000000;
}

body.light-mode .sidebar a:hover {
  color: #ffffff;
}

body.light-mode .sidebar-right {
  background-color: #f5f5f5;
  color: #000000;
  border: 1px solid #000000;
}

body.light-mode .sidebar-right a {
  color: #000000;
}

body.light-mode .sidebar-right a:hover {
  color: #ffffff;
}

body.light-mode #search-bar {
  border: 1px solid #000000;
  background-color: #dddddd;
  color: #000000;
}

body.light-mode .submit_header {
  color: #000000;
}

body.light-mode .submit_header:hover {
  color: #ffffff;
}

body.light-mode .submit_button {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

body.light-mode .submit_button:hover {
  background-color: #000000;
  color: #ffffff;
}

body.light-mode .back-link {
  color: #000000;
}

body.light-mode .back-link:hover {
  color: #161616;
}

body.light-mode .popular_date {
  color: #666;
}

body.light-mode .gallery img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.light-mode .like-button,
body.light-mode .dislike-button {
  color: #000000;
}

body.light-mode .like,
body.light-mode .dislike {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

body.light-mode .like:hover,
body.light-mode .dislike:hover {
  background-color: #000000;
  color: #ffffff;
}

body.light-mode .comment_speichern {
  border: 1px solid #000000;
  color: #000000;
  background-color: #ffffff;
}

body.light-mode .comment_speichern:hover {
  background-color: #000000;
  color: #ffffff;
}

body.light-mode .comments_area,
body.light-mode .name {
  background-color: #ffffff;
  color: #000000;
}

body.light-mode .comment-date {
  color: #666;
}

body.light-mode .latest-article-content p strong,
body.light-mode .article-content p strong {
  color: #000000;
}

body.light-mode .main-article-image {
  border: 1px solid #000000;
}

body.light-mode .gallery-container {
  margin-top: 20px;
}

body.light-mode .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.light-mode .gallery img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
}

body.light-mode .gallery img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.light-mode #title {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

body.light-mode #title:hover {
  background-color: #ffffff1a;
  color: #000000;
}

body.light-mode .submit_header {
  color: #ddd;
}

body.light-mode .submit_header:hover {
  color: #000000;
}

body.light-mode .submit_button {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

body.light-mode .submit_button:hover {
  background-color: #000000;
  color: #ffffff;
}

body.light-mode .main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

body.light-mode .sidebar {
  background-color: #f5f5f5;
  color: #000000;
  border: 1px solid #000000;
  border-right: 0;
}

body.light-mode .sidebar h3 {
  font-family: system-ui;
  font-size: x-large;
}

body.light-mode .sidebar a {
  color: #000000;
}

body.light-mode .sidebar a:hover {
  color: #ffffff;
}

body.light-mode .popular_date {
  color: #666;
}

/* Toggle Switch */
.light-mode-toggle {
  position: relative;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#articleToggle {
  visibility: hidden;
}

body.dark-mode .articles-container {
  background-color: #ffffff;
}

.older-articles .article {
  display: flex;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #161616;
  border-radius: 15px;
  transition: background-color 0.3s;
}

@media (max-width: 800px) {
  header h1 {
    font-family: 'Gloock', serif;
    font-size: 1.5em;
    bottom: 0;
  }

  #article-container h1 {
    font-size: 3em;
  }

  .back-link {
    font-size: medium;
  }

  .title-container::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 70%;
    left: 10%;
    top: 80%;
  }
  
  .title-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("https://momentsingraphics.de/Media/BlueNoise/WhiteNoiseDithering.png");
    opacity: 0.5;
    mix-blend-mode: overlay;
    z-index: -1;
  }

  body.light-mode .latest-article-content a,
  body.light-mode .article-content a {
    background-color: #ffffff;
    color: #000000;
  }

  .articles-container {
    padding: 0;
  }

  #search-mobile {
    display: block;
  }

  body hr {
    margin-bottom: 0;
    margin-top: 5px;
  }

  .sidebar {
    visibility: hidden;
  }

  .sidebar-right {
    visibility: hidden;
  }

  .gallery img {
    width: 50px;
    height: 50px;
  }

  .gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gallery img {
    margin-bottom: 10px;
  }

  #menu-toggle {
    padding-left: 5px;
    padding-bottom: 10px;
    font-size: 1.8em;
  }

  .latest-article-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .article-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  #title {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    padding-right: auto;
  }

  .submit_main {
    padding: 10px;
    margin: 10px;
    margin-left: 1px;
    margin-right: 1px;
  }

  .submit_main{
    padding: 0;
    margin: 0;
    margin-left: 0;
    margin-right: 0;
    border: none;
  }

  .submit_main {
    -webkit-box-shadow:0px 0px 0px 0px rgba(255,255,255,1);
    -moz-box-shadow: 0px 0px 0px 0px rgba(255,255,255,1);
    box-shadow: 0px 0px 0px 0px rgba(255,255,255,1);
  }

  .submit_header {
    display: none;
  }

  body.submit {
    padding: 0;
    margin: 0;
  }

  #latest-article-div {
    visibility: hidden;
  }
  
  .latest-article {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid white;
  }

  #category-menu {
    margin: 0;
    width: max-content;
  }

  .latest-article-content {
    width: 100%;
    padding: 0;
    margin: 0;
    line-height: 1.2;
  }

  .article {
    flex-direction: column;
    align-items: center;
  }

  .article-content {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  #article-container p {
    margin-right: 0;
  }

  .header-container{
    text-align: center;
    font-size: large;
    display: flex;
  }
  
  .footer-left {
    margin-left: 0;
  }
  
  .footer-center {
    text-align: center;
  }
  
  .footer-right {
    margin-right: 0;
  }
}