:root {
  --orange: #fc7a57;
  --blue: #3891a6;
}

html,
body {
  font-family: "Poppins";
  color: #555555;
}

.text-block-sm {
  width: 500px;
}

a:hover {
  color: #3891a6 !important;
  transition: 0.1s;
  text-decoration: none;
}

h1 {
  font-size: 3rem;
  margin-bottom: 4rem;
}

h2 {
  font-family: "Nunito";
  font-size: 2rem;
}

h3 {
  font-family: "Nunito";
  margin-bottom: 2rem;
}

.subline {
  font-family: "Bubblegum Sans";
}

.wp-block-image img {
  border-radius: 10px !important;
}

header {
  height: 100px;
  background: #fff;
  width: 100%;
  position: relative;
  z-index: 99999;
}

header.secondary {
  margin-bottom: 100px;
}

header .logo {
  position: absolute;
  top: -55px;
  left: 100px;
}

header .top-bar {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

header .top-bar li a {
  padding: 0.25rem 1rem;
  color: #383838;
}

header .top-bar li {
  position: relative;
  padding: 8px;
}

header .top-bar li:first-child a {
  padding-left: 0;
}

header .top-bar li:last-child a {
  padding-right: 0;
}

header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

header .top-bar li .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin: 0;
  padding: 0;
  list-style-type: none;
  width: 300px;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 5px 5px 5px #0000004d;
}

header .top-bar li .sub-menu a {
  padding: 0.25rem;
  text-align: left;
  display: block;
  text-decoration: none;
  color: #000;
}

header .top-bar .menu-item-has-children:hover .sub-menu {
  display: block;
}

.page-wrap {
  background-image: url(../images/header_school_utils.png);
  background-size: cover;
  height: calc(100vh - 100px);
  color: #fff;
}

.page-wrap h1 {
  font-weight: 600;
  margin: 0;
}

.page-wrap h1:nth-child(2) {
  font-weight: 400;
  margin-bottom: 10px;
}

.welcome-text {
  position: absolute;
  top: 50%;
  left: 200px;
  max-width: 800px;
  transform: translateY(-50%);
  z-index: 400;
}

header .pencils {
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: 0;
  left: 540px;
  background-image: url(../images/pencils.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 300;
}

.star {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 55%;
  left: 500px;
  background-image: url(../images/star.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 300;
}

.line-1 {
  width: 200px;
  height: 150px;
  position: absolute;
  top: 10%;
  left: 360px;
  transform: rotate(10deg);
  background-image: url(../images/line-1.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.line-2 {
  width: 100px;
  height: 200px;
  position: absolute;
  top: 42%;
  left: 60px;
  transform: rotate(-40deg);
  background-image: url(../images/line-2.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.cloud {
  width: 160px;
  height: 120px;
  position: absolute;
  top: 30%;
  left: 160px;
  background-image: url(../images/single-cloud.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.clouds-foreground {
  width: 100%;
  height: 500px;
  background-image: url(../images/clouds-1.png);
  background-repeat: no-repeat;
  background-position: bottom;
  position: absolute;
  background-size: cover;
  bottom: 0;
}

.clouds-background {
  width: 100%;
  height: 500px;
  background-image: url(../images/clouds-2.png);
  background-repeat: no-repeat;
  background-position: bottom;
  position: absolute;
  background-size: cover;
  bottom: 5px;
}

.ueber-uns {
  min-height: 100vh;
  position: relative;
}

.ueber-uns h2 {
  color: var(--orange);
}

.ueber-uns .container {
  position: relative;
  top: 150px;
  z-index: 5;
}

.ueber-uns .paperplane-1 {
  position: absolute;
  background-repeat: no-repeat;
  background-position: bottom;
  top: 150px;
  left: 20%;
  width: 112px;
  height: 125px;
  background-image: url(../images/paperplane-1.png);
  background-size: contain;
}

.ueber-uns .paperplane-2 {
  position: absolute;
  background-repeat: no-repeat;
  background-position: bottom;
  top: 200px;
  right: 20%;
  width: 112px;
  height: 125px;
  background-image: url(../images/paperplane-2.png);
  background-size: contain;
}

.ueber-uns .field {
  position: absolute;
  background-repeat: no-repeat;
  background-position: bottom;
  bottom: 0;
  width: 100%;
  height: 630px;
  background-image: url(../images/field.png);
  background-size: cover;
}

.events .container:first-child {
  padding-top: 100px;
}

.events .container h2 {
  color: var(--blue);
}

.event-link {
  display: flex;
  justify-content: center;
}

.event-grid {
  padding-top: 45px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding-bottom: 50px;
}

.event-card {
  position: relative;
  background-color: rgba(255, 121, 87, 0.253);
  height: 350px;
  border-radius: 20px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.event-card:nth-child(3n + 2) {
  position: relative;
  background-color: rgba(56, 145, 166, 0.15);
  height: 350px;
  border-radius: 20px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.event-card:nth-child(3n + 3) {
  position: relative;
  background-color: rgba(183, 206, 99, 0.2);
  height: 350px;
  border-radius: 20px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.event-card-bottom {
  position: absolute;
  bottom: 0;
  background: #fc7a57;
  width: 100%;
  border-radius: 0 0 20px 20px;
}

.event-card:nth-child(3n + 2) .event-card-bottom {
  position: absolute;
  bottom: 0;
  background: #3891a6 !important;
  width: 100%;
  border-radius: 0 0 20px 20px;
}

.event-card:nth-child(3n + 3) .event-card-bottom {
  position: absolute;
  bottom: 0;
  background: #8fb339 !important;
  width: 100%;
  border-radius: 0 0 20px 20px;
}

.event-card h3 {
  color: #fc7a57;
}

.event-card:nth-child(3n + 2) h3 {
  color: #3891a6;
}

.event-card:nth-child(3n + 3) h3 {
  color: #8fb339;
}

.event-date {
  background: #fff;
  margin: 20px;
  padding: 5px 10px;
  width: 105px;
  border-radius: 50px;
  border: 1px solid #eb937a;
  margin-bottom: 10px;
}

.event-card:nth-child(3n + 2) .event-date {
  border: 1px solid #3891a6;
}

.event-card:nth-child(3n + 3) .event-date {
  border: 1px solid #8fb339;
}

.event-title {
  margin: 25px 20px;
  font-size: 18px;
}

.event-details {
  margin: 15px 20px;
  color: #fff;
}

footer {
  position: relative;
}

footer .clouds-1 {
  position: relative;
  top: 150px;
  width: 100%;
  height: 741px;
  background-image: url("../images/clouds-3.png");
  background-size: cover;
  background-repeat: no-repeat;
}

footer .clouds-2 {
  width: 80%;
  height: 193px;
  position: absolute;
  left: 50%;
  top: 250px;
  transform: translateX(-50%);
  background-image: url("../images/clouds-4.png");
  background-size: cover;
  background-repeat: no-repeat;
}

footer .info {
  position: relative;
  display: flex;
  width: 100%;
  background-color: #4c5b5c;
  z-index: 100;
  border-top: 1px solid #627475;
}

footer .info-responsive {
  display: none;
}

footer .schoolkids {
  position: absolute;
  width: 1200px;
  height: 200px;
  left: 50%;
  top: -170px;
  transform: translateX(-50%);
  background-image: url("../images/footer-1.png");
  background-size: contain;
  z-index: 200;
  background-repeat: no-repeat;
}

footer .info .logo {
  position: relative;
  width: 25%;
  height: 290px;
  border-right: 1px solid #627475;
  color: #fff;
}

footer .info .logo img {
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
}

footer .info .contact {
  display: flex;
  flex: 1;
  height: 60px;
  width: 75%;
  min-height: 290px;
}

footer .info .contact p,
footer .info .contact a,
footer .info .contact b {
  color: #fff;
}

footer .info .contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 130px;
}

footer .info .contact .box {
  position: relative;
}

footer .info .contact .box:nth-child(1)::before {
  position: absolute;
  content: "";
  left: -80px;
  top: -17px;
  background-image: url("../images/phone.png");
  width: 58px;
  height: 58px;
  background-size: contain;
}

footer .info .contact .box:nth-child(2)::before {
  position: absolute;
  content: "";
  left: -80px;
  top: -17px;
  background-image: url("../images/mail.png");
  width: 58px;
  height: 58px;
  background-size: contain;
}

footer .info .contact .box:nth-child(3)::before {
  position: absolute;
  content: "";
  left: -80px;
  top: -17px;
  background-image: url("../images/location.png");
  width: 58px;
  height: 58px;
  background-size: contain;
}

footer .imprint {
  width: 100%;
  padding: 15px 0;
  background-color: #627475;
  color: #4c5b5c;
}

footer .imprint a {
  color: #fff;
  padding-left: 20%;
  padding-right: 15px;
}

footer .imprint a:nth-child(2) {
  padding-left: 15px;
}

.imprint .container {
  width: 25%;
  margin: 0;
  padding: 0;
}

.wp-block-button {
  color: #fff;
}

@media (max-width: 1700px) {
  footer .info .contact {
    flex-direction: column; /* Stapelt die Boxen übereinander */
    align-items: flex-start; /* Links ausrichten */
    gap: 20px; /* Abstand zwischen den Boxen */
    padding: 45px;
  }

  footer .info .contact .box {
    width: 100%; /* Volle Breite der Boxen */
    display: flex; /* Flexbox aktivieren */
    align-items: center; /* Text und Icon vertikal zentrieren */
    gap: 15px; /* Abstand zwischen Icon und Text */
  }

  footer .info .contact .box:nth-child(1)::before,
  footer .info .contact .box:nth-child(2)::before,
  footer .info .contact .box:nth-child(3)::before {
    left: 0; /* Pseudo-Elemente linksbündig */
    transform: none; /* Keine Zentrierung */
    position: relative; /* Position im Box-Layout */
    margin-right: 10px; /* Abstand zwischen Icon und Text */
    top: 0;
  }

  footer p {
    margin-top: auto;
  }
}

@media (max-width: 1550px) {
  header .container {
    justify-content: right;
    margin-right: 0;
  }
}

@media (max-width: 1200px) {
  header .container {
    font-size: 12px;
  }

  .menu-top-menu-container {
    display: none;
  }

  .schoolkids {
    display: none;
  }

  .welcome-text {
    left: 80px;
    max-width: 75%;
  }
  .imprint .container {
    width: 100%;
  }

  footer .imprint a {
    padding-left: 45px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .welcome-text {
    left: 75px;
  }

  .ueber-uns .container {
    width: 80%;
    top: 0;
  }

  .paperplane-1,
  .paperplane-2 {
    display: none;
  }

  .event-card {
    width: 300px;
  }

  .line-1,
  .pencils,
  .star {
    display: none;
  }

  header .logo {
    left: 50%;
    transform: translateX(-50%);
  }

  .events .container {
    text-align: center;
  }

  footer .contact p,
  footer .contact a,
  footer .contact b {
    font-size: 10px;
  }

  footer .box::before,
  footer .info .contact .box:nth-child(2)::before {
    width: 30px !important;
    height: 30px !important;
    background-repeat: no-repeat;
  }
}

@media (max-width: 555px) {
  footer .info {
    display: none;
  }

  footer .info-responsive {
    display: block;
    position: relative;
    width: 100%;
    background-color: #4c5b5c;
    padding-bottom: 60px;
    color: #fff;
    z-index: 999;
  }

  footer .info-responsive img {
    width: 100px;
    position: relative;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
  }

  footer .info-responsive .contactbox-responsive {
    position: relative;
    top: 50px;
    text-align: left;
    padding-left: 45px;
    font-size: 0.8rem;
  }

  footer .info-responsive .contactbox-responsive .box {
    margin: 25px 0;
  }

  footer .info-responsive .contactbox-responsive .box:nth-child(2) a {
    color: rgb(169, 190, 235);
  }
}
