/* =========================================================
   0. RESET
   ========================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
      1. GLOBAL / ROOT VARIABLES
      ========================================================= */
:root {
  --primary-color: #2457c8;
  --secondary-color: #2c87ea;
  --text-color: #001950;
  --accent-color: #2457c8;
  --gradient-start: #2457c8;
  --gradient-end: #2c87ea;
  --secondary-color-50: #2457c825;
  --primary-color-10: #2457c810;
}

/* =========================================================
      2. BASIC ELEMENT STYLES (body, container, headings, links)
      ========================================================= */
body {
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  background-color: #fff;
}

/* Utility container for horizontal centering */
.container {
  margin: 0 auto;
  padding: 2rem 10%;
}

/* Headings: bigger, bolder */
h1,
h2,
h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* .gradient-text for headings with gradient fill */
.gradient-text {
  background: linear-gradient(
    90deg,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Links */
a {
  text-decoration: none;
  color: var(--text-color);
}

/* =========================================================
      3. NAVBAR
      ========================================================= */
.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* LOGO */
.navbar__logo {
  height: 50px;
}

/* Links container with light background/opacity */
.navbar__links-container {
  background-color: rgba(36, 87, 200, 0.08);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  display: flex;
}

/* UL for nav links */
.navbar__links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
}

/* Base nav-button styling */
.nav-button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  background-color: transparent;
  color: var(--text-color);
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s;
  line-height: 1.2;
}
.nav-button-angebote {
  border-radius: 50px;
  border: 1px solid var(--secondary-color);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: transparent;
  color: var(--secondary-color);
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s;
  line-height: 1.2;
}
.nav-button-angebote:hover {
  background-color: var(--secondary-color);
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-button:hover {
  background-color: var(--secondary-color-50);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Active nav link (Home) */
.nav-button--active {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
  pointer-events: none; /* Optional: for visual feedback */
  cursor: not-allowed;
}

.nav-button-angebote--active {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
  pointer-events: none; /* Optional: for visual feedback */
  cursor: not-allowed;
}

/* "Kontaktieren Sie uns" primary button */
.nav-button--primary {
  background-color: var(--secondary-color);
  color: #fff;
}
.nav-button--primary:hover {
  background-color: var(--primary-color);
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* =========================================================
      4. HAMBURGER MENU
      ========================================================= */
.hamburger {
  display: none; /* Hidden on larger screens by default */
  cursor: pointer;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.5s;
}

/* Hamburger bars */
.hamburger span {
  width: 32px;
  height: 4px;
  background-color: var(--primary-color);
  display: block;
  transition: transform 0.5s ease, opacity 0.5s ease;
  border-radius: 99px;
}

/* Animate into an "X" when .open is toggled */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -9px);
}

/* =========================================================
      5. BUTTON STYLES
      ========================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  color: #fff;
}
.button--primary {
  background-color: var(--secondary-color);
}
.button--primary:hover {
  background-color: var(--primary-color);
}

/* =========================================================
      6. HERO SECTION
      ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2-column layout on large screens */
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Hero headings and text */
.hero__title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 2rem;
  margin-bottom: 2rem;
  max-width: 80%;
  color: var(--text-color);
}

/* Hero graphic or image */
.hero__graphic {
  max-width: 80%;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

/* Call-to-action button in hero */
.hero__cta {
  font-size: 1rem;
}

/* Hero media (video, background glow) */
.hero__media {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background blur behind the video */
.media-background {
  background-color: rgba(36, 87, 200, 0.4);
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 1rem;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* Aspect-ratio wrapper for the hero video */
.hero__video-wrapper {
  width: 100%;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
}

/* =========================================================
      7. PARTNERS SECTION
      ========================================================= */
.partners.container {
  background: linear-gradient(180deg, white 0%, rgba(44, 135, 234, 0.2) 100%);
  width: 100%;
  padding: 2rem 0;
}

.partners__text {
  text-align: center;
  margin-bottom: 2rem;
}

.partners__logos {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.scroll-content {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  animation: scroll-left 120s linear infinite;
}

.scroll-content img {
  max-height: 40px;
  object-fit: contain;
  margin-right: 5rem;
}

/* Pause scrolling on hover */
.partners__logos:hover .scroll-content {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partners__logos img {
  max-height: 40px;
  object-fit: contain;
}

/* For full-screen "above the fold" layout if used */
.above-fold {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* =========================================================
      8. SERVICES SECTION
      ========================================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
}

.service-card {
  position: relative;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  background-color: var(--primary-color-10);
  transform: scale(1.02);
  transition: transform 0.5s ease-in-out;
}

.service-card__icon {
  height: 8rem;
}
.service-card__icon img {
  max-width: 100px;
  margin-bottom: 3rem;
}

.service-card h3 {
  margin-bottom: 1.5rem;
}

.accent {
  color: var(--accent-color);
  font-weight: 500;
}

.services p {
  font-size: 1.2rem;
}

/* Blurred background glow inside service card */
.service-card-background {
  background-color: rgba(36, 87, 200, 0.2);
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 1rem;
  filter: blur(20px);
  z-index: -1;
  top: 10%;
  left: 10%;
  transform: translate(-10%, -10%);
  pointer-events: none;
}

/* =========================================================
      9. AWARDS SECTION
      ========================================================= */
.awards__content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.awards__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.awards__logo {
  max-width: 350px;
  margin-bottom: 1rem;
}

.more-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 300;
  color: var(--primary-color);
}

.awards__video {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  overflow: visible;
}

.video-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
}

/* =========================================================
      10. DARUM SECTION
      ========================================================= */
.darum p {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
}
.highlight {
  color: var(--accent-color);
  font-weight: 500;
}

/* =========================================================
      11. CONTACT SECTION
      ========================================================= */
.contact {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}
.contact .button {
  margin-top: 2rem;
}

/* =========================================================
      12. FOOTER
      ========================================================= */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
  justify-content: center;
}

.footer__content {
  align-items: center;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 0 10%;
}

.footer__links {
  display: flex;
  gap: 1rem;
}
.footer__links a {
  color: #fff;
  font-weight: 400;
}

.section-title-center {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.section-title-left {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

.section-title-left-2 {
  font-size: 2rem;
  text-align: left;
}

/* =========================================================
      13. MEDIA QUERIES
      ========================================================= */

/* 13.a) Mobile nav menu (<= 768px) */
@media screen and (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content {
    align-items: center;
  }

  .awards__content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .awards__video,
  .awards__info {
    width: 100%;
    max-width: 600px;
  }
  .awards__logo {
    max-width: 80%;
    height: auto;
    margin: 0 auto 1rem;
  }
  .awards__info {
    align-items: center;
    text-align: center;
    margin-top: 1.5rem;
  }

  .footer__content {
    gap: 1rem;
  }
}

/* 13.b) Medium screens (<= 1025px) */
@media screen and (max-width: 1025px) {
  .hamburger {
    display: flex;
  }

  /* Hide links container by default on mobile */
  .navbar__links-container {
    display: none;
  }

  /* Show the menu when .open is toggled */
  .navbar__links-container.open {
    display: flex;
    position: absolute;
    top: 5rem;
    right: 10%;
    flex-direction: column;
    background-color: white;
    padding: 2rem;
    z-index: 999;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }

  .navbar__links-container.open .nav-button {
    margin: 0.5rem 0;
    color: var(--text-color);
  }

  .navbar__links {
    display: flex;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content {
    align-items: center;
  }

  .navbar__contact {
    display: none;
  }
  .navbar__contact--desktop {
    display: none;
  }
  .navbar__contact--mobile {
    display: inline-flex;
    margin: 1rem auto 0 auto;
  }

  .awards__content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .awards__video,
  .awards__info {
    width: 100%;
    max-width: 600px;
  }
  .awards__logo {
    max-width: 80%;
    margin: 0 auto 1rem auto;
    height: auto;
  }
  .awards__info {
    align-items: center;
    text-align: center;
    margin-top: 1.5rem;
  }
  .footer__content {
    gap: 1rem;
  }
}

/* 13.c) Large screens (>= 1400px) */
@media (min-width: 1400px) {
  .hero__heading {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-color);
  }
  .hero__graphic {
    max-width: 100%;
    margin-bottom: 3rem;
  }
  .hero__subtext {
    font-size: 3rem;
    margin-bottom: 3rem;
    max-width: 80%;
  }

  .partners__logos {
    gap: 5rem;
  }
}

/* 13.d) Extra small screens (<= 480px) */
@media screen and (max-width: 480px) {
  /* Body text a bit smaller */
  body {
    font-size: 1rem;
  }
  .container {
    margin: 0 auto;
    padding: 1rem 10%;
  }
  /* Headings smaller */
  h1,
  h2,
  h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  /* Navbar & Buttons smaller */
  .nav-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  .nav-button-angebote {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  .hamburger {
    max-height: 1.5rem;
    gap: 0.3rem;
  }
  .hamburger span {
    width: 1.5rem;
    height: 0.2rem;
  }
  /* Animate into an "X" when .open is toggled */
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .navbar__logo {
    height: 1.5rem;
  }
  .navbar__links-container.open {
    top: 3rem;
    padding: 1rem;
  }
  /* Adjust if you don’t want forced full screen on mobile */
  .above-fold {
    min-height: auto;
  }

  /* Hero layout refinements */
  .hero {
    grid-template-columns: 1fr; /* single column */
    padding: 1rem;
  }
  .hero__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  .hero__graphic {
    max-width: 70%;
    margin-bottom: 2rem;
  }

  /* Example smaller section title */
  .section-title-center {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .section-title-left {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .partners__logos img {
    max-height: 20px;
    object-fit: contain;
  }
}
