* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

body,
html {
  height: 100%;
  font-family: "Montserrat", sans-serif;
}

.sternenhimmel {
  position: relative;
  width: 100%;
  height: 400px; /* Oder beliebige Höhe */
  background: black;
  overflow: hidden;
}
.stars {
  position: absolute;
  width: 200%;
  height: 200%;
  animation: drift 120s linear infinite;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle 4s infinite alternate;
}
@keyframes twinkle {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}
@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-25%, -25%);
  }
}
.sternenhimmel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1; /* Über den Sternen */
  color: white;
}
.sternenhimmel-content h1 {
  font-size: 2.8rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rhodium-timeless {
  background-color: #ffffff;
  padding: 5rem 2rem;
  text-align: center;
}
.rhodium-text {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 2s forwards;
  animation-delay: 0.3s;
}
.rhodium-text p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #333;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --------------------------- */
/*   MOBILE OPTIMIZATION       */
/* --------------------------- */

@media (max-width: 768px) {
  .rhodium-timeless {
    padding: 3rem 1.5rem;
  }

  .rhodium-text {
    max-width: 100%;
    transform: translateY(20px);
    animation-duration: 1.6s;
  }

  .rhodium-text p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #2a2a2a;
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .rhodium-timeless {
    padding: 2.5rem 1.2rem;
  }

  .rhodium-text p {
    font-size: 1rem;
    line-height: 1.6;
  }
}


.toc-section {
  background-color: #fafafa;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid #eee;
}
.toc-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.toc-section h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 2rem;
}
.toc-wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.2rem;
}
.toc-wrapper li a {
  display: block;
  padding: 1rem;
  background-color: #ffffff;
  color: #555;
  font-size: 1.1rem;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.toc-wrapper li a:hover {
  background-color: #8e44ad;
  color: #ffffff;
  border-color: #8e44ad;
}

.content-section {
  background-color: #ffffff;
  padding: 5rem 2rem;
  border-top: 1px solid #eee;
}
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.content-section h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  line-height: 1.3;
}
.content-section p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.content-highlight {
  background: linear-gradient(to bottom right, #f5f7fa, #e8ebf0);
  padding: 5rem 2rem;
  border-top: 1px solid #ddd;
}
.highlight-wrapper {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}
.content-highlight h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 2.5rem;
}
.highlight-text {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.highlight-text p {
  font-size: 1.15rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}
/* ------------------------------------ */
/*        MOBILE OPTIMIZATION           */
/* ------------------------------------ */

@media (max-width: 768px) {

  /* --- Content Section --- */
  .content-section {
    padding: 3rem 1.5rem;
  }

  .content-wrapper {
    max-width: 100%;
    text-align: left; /* wirkt hochwertiger auf Mobile */
  }

  .content-section h2 {
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
  }

  .content-section p {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
    text-align: left;
  }

  /* --- Highlight Section --- */
  .content-highlight {
    padding: 3.5rem 1.5rem;
  }

  .highlight-wrapper {
    max-width: 100%;
    text-align: left;
  }

  .content-highlight h2 {
    font-size: 1.7rem;
    margin-bottom: 2rem;
    line-height: 1.25;
  }

  .highlight-text {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  }

  .highlight-text p {
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
    text-align: left;
  }
}

/* -------- Smaller Phones (max 480px) -------- */
@media (max-width: 480px) {

  .content-section {
    padding: 2.5rem 1.2rem;
  }

  .content-section h2 {
    font-size: 1.55rem;
  }

  .content-section p {
    font-size: 0.95rem;
  }

  .content-highlight {
    padding: 2.8rem 1.2rem;
  }

  .content-highlight h2 {
    font-size: 1.45rem;
  }

  .highlight-text {
    padding: 1.2rem;
  }

  .highlight-text p {
    font-size: 0.95rem;
  }
}

.content-image {
  flex: 1 1 400px;
  text-align: center;
}
.content-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
/* ------------------------------------ */
/*        MOBILE OPTIMIZATION           */
/* ------------------------------------ */

@media (max-width: 768px) {

  .content-image {
    flex: 1 1 100%;
    text-align: center;
    margin-top: 2rem; /* eleganter Abstand bei Stack-Layout */
  }

  .content-image img {
    max-width: 85%;      /* wirkt hochwertiger als 100% */
    border-radius: 12px; /* etwas weicherer Luxus-Look */
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
  }
}

@media (max-width: 480px) {

  .content-image {
    margin-top: 1.5rem;
  }

  .content-image img {
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
}


.section-final {
  background-color: #f8f8f8;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid #eee;
}
.final-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.section-final h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 2rem;
}
.section-final p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.kontakt-button {
  display: inline-block;
  margin-top: 2rem;
  background-color: #8e44ad;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.kontakt-button:hover {
  background-color: #732d91;
}

/* ===== Desktop Header ===== */
.simple-header {
  background-color: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: #8e44ad;
}

/* ===== Mobile Defaults ===== */
.mobile-menu-btn {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== Mobile Navigation ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 70%;
  background: #fff;
  color: #333;
  padding: 2rem;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  transition: right 0.4s ease;
  z-index: 9999;
}

.mobile-nav ul {
  list-style: none;
  padding: 80px 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav a {
  text-decoration: none;
  font-size: 1.3rem;
  color: #444;
  font-weight: 500;
}

.mobile-nav a:hover {
  color: #8e44ad;
}

.close-mobile {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9998;
}

/* ===== Mobile Breakpoint ===== */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .simple-header {
    padding: 1rem 1.5rem;
  }
}

/* ===== Active Mobile Menu ===== */
.mobile-nav.active {
  right: 0;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}


.footer {
  background-color: #2c2c2c;
  color: #eee;
  padding: 3rem 2rem 1.5rem;
  font-size: 0.95rem;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
}
.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #ffffff;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin-bottom: 0.5rem;
}
.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: #8e44ad;
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #aaa;
}
