
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #000;
  line-height: 1.8;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 400;
}


header {
  background-color: #fff;
  position: fixed;
  width: 100vw;
  padding: 1rem 3rem; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  box-shadow: none;
  z-index: 1000;
}

.logo {
  position: fixed;
  top: 10px;
  left: 20px; 
  z-index: 1100;
}

.logo img {
  height: 60px;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}


nav {
  position: fixed;
  top: 20px;
  right: 20px; 
  z-index: 1100;
  font-family: 'Courier New', Courier, monospace;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 1.15rem;
  font-weight: normal;
  transition: font-size 0.3s ease, text-decoration 0.3s ease;
}

nav a:hover {
  font-size: 1.2rem;
  text-decoration: underline;
  font-weight: bold;
}
/* MAIN CONTENT */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
  font-family: monospace;
}

.page-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 5rem;
  margin-bottom: 1rem;
  color: #111;
margin-top: 8rem;
}

.page-subtitle {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 7rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* BLOG POSTS */
.posts {
  text-align: left;
}

.post {

  margin-bottom: 8rem;
}

.post h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.post time {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #777;
  display: block;
  margin-bottom: 1.1rem;
}


.toggle {
  display: none;
}

.post-content {
  max-height: 6em; 
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

.post-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), white);
}

.toggle:checked ~ .post-content {
  max-height: 100em;
}

.toggle:checked ~ .post-content::after {
  display: none;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: #e0ddce;
  background-color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #ffffff;
}

.toggle:checked + .post-content + .read-more::after {
  content: " Weniger lesen ↑";
}

.toggle:not(:checked) + .post-content + .read-more::after {
  content: " Weiterlesen →";
}


.back-link {
  margin-top: 5rem;
  text-align: center;
}

.back-link a {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  font-size: 1rem;
  color: #e0ddce;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.back-link a:hover {
  color: #111;
  border-bottom-color: #111;
}


#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #f7f5e9;
  color: #111;
  text-decoration: none;
  padding: 0.2rem 1rem;
  font-size: 1.6rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #e0ddce;
}

@media (max-width: 600px) {
  header {
    padding: 1rem 1.5rem;
  }
  nav ul {
    gap: 1.5rem;
  }
  .page-title {
    font-size: 2.2rem;
  }
  .post h2 {
    font-size: 1.3rem;
  }
}


.page-title {
  animation: floatShadow 3s ease-in-out infinite;
}

@keyframes floatShadow {
  0%, 100% {
    transform: translateY(0);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    transform: translateY(-6px);
    text-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  }
}
