@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Quicksand", sans-serif;
}

:root {
  --bg-color: #ffffff;
  --second-bg-color: #ffffff;
  --text-color: #000000;
  --main-color: #2b88a5;
  --header-height: 6rem; /* Höhe der Navigation */
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

.header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 70px;
  background-color: #ffffff;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px #000000;
  z-index: 999;
}

.header .social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem; /* Abstand zwischen den Social-Media-Icons */
}

.header .social-icons a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 0.2rem solid var(--text-color);
  border-radius: 50%;
  font-size: 20px;
  color: var(--text-color);
  z-index: 1;
  overflow: hidden;
  transition: 0.5s;
}

.header .social-icons a:hover {
  color: var(--bg-color);
}

.header .social-icons a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--text-color);
  z-index: -1;
  transition: 0.5s;
}

.header .social-icons a:hover::before {
  width: 100%;
}

.header.sticky {
  background: var(--bg-color); /* Füge hier eine feste Hintergrundfarbe hinzu */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0); /* Optional: Schatteneffekt */
}

.logo {
  position: relative;
  left: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px; /* feste Höhe */
  margin-left: 20px;
  padding-top: 0; /* ggf. anpassen */
}

.logo-link {
  text-decoration: none;
  color: var(--text-color);
}

.logo-link h1 {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
  color: inherit; /* übernimmt die Farbe vom Link */
}

.logo-link:hover h1 {
  color: var(--text-color); /* z. B. beim Hover */
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 3.5rem;
  gap: 4rem;
  border-radius: 60px;
  background: #ffffff;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 20px #2f3331e0;
}

.navbar.scrolled {
  background: var(--bg-color); /* Hintergrundfarbe bei Scrollen */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Schatten */
}

.navbar a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  transition: 0.3s;
}

.navbar a.active {
  color: var(--text-color);
  text-decoration: none;
}

.navbar a:hover {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  color: var(--text-color);
  text-decoration: underline;
}

#menu-icon {
  position: relative;
  font-size: 3.6rem;
  color: var(--text-color);
  cursor: pointer;
  display: none;
}

.heading {
  position: relative;
  font-size: 5rem;
  margin-bottom: 3rem;
  text-align: center;
}

span {
  color: var(--text-color);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--bg-color);
}

.footer-text p {
  font-size: 1.6rem;
}

.footer-iconTop a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background: var(--text-color);
  border: 0.2rem solid var(--text-color);
  border-radius: 0.6rem;
  z-index: 1;
  overflow: hidden;
}

.footer-iconTop a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--bg-color);
  z-index: -1;
  transition: 0.5s;
}

.footer-iconTop a:hover::before {
  width: 100%;
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--bg-color);
  transition: 0.5s;
}

.footer-iconTop a:hover i {
  color: var(--text-color);
}

/* ANIMATION RELOAD AND SCROLL */
.animate {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 98;
}

.animate.home-img {
  width: 50%;
}

.logo .animate,
.navbar .animate,
#menu-icon .animate,
.home.show-animate .animate {
  animation: showRight 1s ease forwards;
  animation-delay: calc(0.3s * var(--i));
}

.animate.scroll {
  transition: 1s ease;
  transition-delay: calc(0.3s / var(--i));
  animation: scroll;
}

section:nth-child(odd) .animate.scroll {
  background: var(--bg-color);
}

.about.home.show-animate .animate.scroll {
  transition-delay: calc(0.3s * var(--i));
  width: 0;
}

#menu-icon {
  font-size: 3rem;
  cursor: pointer;
  display: none;
  border: 2px solid var(--text-color); /* Rahmen */
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.navbar.active .lang-dropdown {
  margin-left: auto;
  margin-right: 2rem; /* oder was optisch passt */
}


.bx-x {
  color: var(--text-color);
}


/* BREAKPOINTS */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 4%;
  }

  section {
    padding: 10rem 4% 2rem;
  }

  .home {
    padding: 0 4%;
  }

  .footer {
    padding: 2rem 4%;
  }
}

@media (max-width: 850px) {
  .animate.home-img {
    width: 55%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  /* ================= HEADER ================= */
  .header {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    background: var(--bg-color);
  }

  .logo {
    margin-left: 0;
    order: 1;
  }

  .header .social-icons {
    display: none;
  }

  #menu-icon {
    display: block;
    margin-left: auto;
    order: 3;
    font-size: 3.2rem;
    border: 2px solid var(--text-color);
    padding: 0.6rem;
    border-radius: 0.8rem;
    color: var(--text-color);
    cursor: pointer;
  }

  /* ================= NAVBAR ================= */
  .navbar {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;

    /* Desktop-Stile killen */
    border-radius: 0;
    box-shadow: none;
    gap: 0;

    background: #ffffff;
    padding: 1.6rem 2rem;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    transition: left 0.3s ease;
    z-index: 999;

    /* moderner Sheet-Look */
    border-bottom-left-radius: 2.6rem;
    border-bottom-right-radius: 2.6rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
  }

  .navbar.active {
    left: 0;
  }

  .navbar a {
    font-size: 2rem;
    font-weight: 600;

    padding: 1.4rem 1.2rem;
    margin: 0.5rem 0;

    border-radius: 1.4rem;
    width: 100%;

    transition: background 0.2s ease;
  }

  .navbar a:hover {
    background: rgba(47, 51, 49, 0.06);
    text-decoration: none;
    transform: none;
    text-shadow: none;
  }

  /* ================= CONTENT FIXES ================= */
  .home-imgHover {
    pointer-events: none;
    background: var(--bg-color);
    opacity: 0.6;
  }

  .vision-mission-container {
    flex-direction: column;
  }

  .vision,
  .values,
  .mission {
    width: 100%;
  }

  .about_me-content {
    flex-direction: column;
    align-items: center;
  }

  .about_me-img {
    margin-bottom: 2rem;
  }

  .about_me-content p {
    text-align: center;
  }
}


/* ======================== */
/* 📱 MAX-WIDTH: 520px     */
/* Kleine Smartphones        */
/* ======================== */
@media (max-width: 520px) {
  html {
    font-size: 50%;
  }

  .home-content h1 {
    display: flex;
    flex-direction: column;
  }

  .home-sci {
    width: 160px;
  }

  .home-sci a {
    width: 38px;
    height: 38px;
  }

  .flip-container {
    width: 100%;
    height: auto;
    min-height: 280px;
  }

  .flip-front h3,
  .flip-front p,
  .flip-back p,
  .flip-back a {
    font-size: 1.4rem;
  }

  .flip-back a {
    padding: 0.6rem 1rem;
  }

  .detail-card {
    padding: 1.5rem;
  }

  .detail-card h3 {
    font-size: 2rem;
  }

  .detail-card p,
  .detail-card ul {
    font-size: 1.3rem;
  }

  .detail-card ul {
    margin-left: 2rem;
  }
}

/* ======================== */
/* 📱 MAX-WIDTH: 462px     */
/* Sehr kleine Phones        */
/* ======================== */
@media (max-width: 462px) {
  .home-content h1 {
    font-size: 5.2rem;
  }

  .education {
    padding: 10rem 4% 5rem 5%;
  }

  .contact form .input-box .input-field {
    width: 100%;
  }

  .footer {
    flex-direction: column-reverse;
  }

  .footer p {
    margin-top: 2rem;
    text-align: center;
  }
}

/* ======================== */
/* 📱 MAX-WIDTH: 371px     */
/* Ultrakompakte Screens     */
/* ======================== */
@media (max-width: 371px) {
  .home {
    justify-content: center;
  }

  .home-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .home-content h1 {
    font-size: 5rem;
  }
}


/* KEYFRAMES */
@keyframes homeBgText {
  0%,
  10%,
  100% {
    background-position: -33rem 0;
  }

  65%,
  85% {
    background-position: 0 0;
  }
}

@keyframes homeCursorText {
  0%,
  10%,
  100% {
    width: 0;
  }

  65%,
  78%,
  85% {
    width: 100%;
    opacity: 1;
  }

  75%,
  81% {
    opacity: 0;
  }
}

@keyframes aboutSpinner {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes showRight {
  100% {
    width: 0;
  }
}