/* =========================================
   TOONLAB – Clean & Basic Stylesheet
   ========================================= */

/* -------- BASIC RESET -------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #E4E1DD;
  color: #111;
  line-height: 1.6;
}

/* -------- UNIVERSAL SPACING HELPER -------- */
.block-spacing {
  margin-bottom: 40px;
}

/* -------- HEADINGS -------- */
h1 {
  font-size: 40px;
  color: #222;
  text-align: center;
  margin-bottom: 20px;
}

h2,
.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #222;
}

/* -------- TEXT -------- */
p {
  font-size: 18px;
  color: #444;
  text-align: center;
  margin-bottom: 20px;
}

.grid-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: #444;
  line-height: 1.6;
}

a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.hero-text {
  margin-top: 30px; /* zusätzlicher Abstand */
  text-align: center;
}

/* -------- SECTION BACKGROUNDS -------- */
.section--light {
  background-color: #F9F8F6;
}

.section--mid {
  background-color: #E4E1DD;
}

.section--dark {
  background-color: #BFB8B2;
}

/* -------- HEADER -------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 40px;
  background-color: #F9F8F6;
  border-bottom: 1px solid #ddd;
}

.logo img {
  height: 40px;
}

nav a {
  margin-left: 20px;
  font-weight: 500;
  color: #333;
}

/* -------- CONTAINER -------- */
.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* -------- HERO -------- */


.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* füllt den Container */
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  border-radius: 12px;
}

.carousel-image.active {
  opacity: 1;
  z-index: 1;
}

/* -------- LOTTIE -------- */
.lottie-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}


.lottie-box {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1 / 1;
  
}

/* -------- IMAGE + VIDEO -------- */
img,
video {
  max-width: 100%;
  border-radius: 8px;
  display: block;
}

.video-wrapper {
  margin-bottom: 40px;
}

.image-one {
  margin-bottom: 40px;
}


.image-pair {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.image-box {
  flex: 1 1 300px;
  max-width: 45%;
  text-align: center;
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.about-image,
.contact-lottie {
  width: 180px;
  height: 180px;
  margin: 0 auto 30px;
}

.caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #555;
}

.solo-video {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
}
/* -------- GRIDS -------- */
.grid-three,
.grid-four,
.grid-nine {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.grid-four {
  grid-template-columns: repeat(2, 1fr);
}

.grid-nine {
  grid-template-columns: repeat(3, 1fr);
}

/* -------- BUTTONS -------- */
button {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 30px;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

button:hover {
  background-color: #555;
}

/* -------- FORMS -------- */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

input,
textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* -------- FOOTER -------- */
.site-footer {
  background-color: #E4E1DD;
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
  color: #777;
  border-top: 1px solid #ddd;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
  h1,
  h2,
  p {
    text-align: center;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .grid-three,
  .grid-four,
  .grid-nine {
    grid-template-columns: 1fr;
  }

  .lottie-grid {
    flex-direction: column;
    align-items: center;
  }

  form {
    width: 100%;
  }

  input,
  textarea,
  button {
    width: 100%;
    max-width: 100%;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-text,
  .grid-text {
    padding: 0 10px;
  }
}
