*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body { height: 100%; }
main { padding-top: 3.5rem; }
.hidden { display: none !important; }

#landing {
    display: flex;
    flex-direction: column;
}

/* Header section */
.background-header {
    margin-top: 0.5rem;
    height: auto; /* let content/image height define it */
    max-height: 20vh; /* optional limit */
    background-image: url('../images/landing/header.png');
    background-size: auto 100%; /* full height, natural width */
    background-repeat: no-repeat;
    background-position: center;
    background-color: white; /* optional */
    aspect-ratio: 4 / 1; /* help control scaling if needed */
}

.background-main-wrapper {
    position: relative;
    width: 100vw;         /* full viewport width */
    overflow: hidden;     /* prevent horizontal scroll */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.background-main {
    width: 150vw;          /* wider than viewport */
    background-image: url('../images/landing/desktop2.png');
    background-size: contain; /* or contain if you want the whole image */
    background-repeat: no-repeat;
    background-position: center;
}

.chapter-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  flex-wrap: wrap;       /* falls Bildschirm zu klein → Umbruch */
}
.chapter-links img {
  width: 180px;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.chapter-links img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}



#landing .introduction-wrapper{
    text-align: center;
    position: relative;
    padding-top: 2rem;
    padding-left: 10%;
    padding-right: 10%;
}


#landing .introduction-text{
    text-align: left;
    /*font-family: 'Comic Sans MS', cursive, sans-serif;*/
    font-family: 'Rockwell', sans-serif;
    font-size: 25px;
    display: block;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .background-main {
        background-image: url('../images/landing/mobile.png');
        background-size: cover;
    }
    #landing .introduction-text{
        text-align: left;
        /*font-family: 'Comic Sans MS', cursive, sans-serif;*/
        font-family: 'Rockwell', sans-serif;
        font-size: 20px;
        display: block;
        margin-bottom: 1rem;
    }
}
/* Overlay für Impressum */
#legal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2rem;
  overflow-y: auto;
  z-index: 10000;
}

#legal-modal .modal-content {
  max-width: 700px;
  margin: auto;
  background: #111;
  padding: 2rem;
  border-radius: 8px;
  color: white;
}

#close-legal {
  float: right;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
}

#legal-modal .modal-content a.external-link {
  color: #3399ff;
}
