/* Import the Outfit font */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

/* Variables */
:root {
  /* Font Family */
  --global--font-primary: "Outfit", sans-serif;
  --global--font-secondary: "Outfit", sans-serif;
  --font-headings: "Outfit", sans-serif;
  --font-base: "Outfit", sans-serif;

  /* Colors */
  --global--color-7: #4e6986;
  --global--color-6: #587491;
  --global--color-5: #abb9c8;
  --global--color-4: #f2f6f9;
  --global--color-3: #9dc2e2;
  --global--color-2: #073763;
  --global--color-1: #ffffff;

  /* Site Layout */
  --global--spacing-horizontal: 2rem; /* side padding */
  --content--max-width: 1200px; /* same as alignwide width */
}

@media (max-width: 768px) {
  .site-logo--large {
    display: none;
  }
}

body {
  font-family: var(--global--font-primary);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
}

/* Button */
button {
  background: var(--global--color-7);
  border: 2px none;
  color: #fff;
  border-radius: 24px;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
}

/* === Base Layout === */
:root {
  --content--max-width: 1200px;
  --spacing--horizontal: 2rem;
  --spacing--vertical: 2rem;
  --header--height: 90px;
  --footer--padding: 3rem;
  --font-family-base: "Outfit", sans-serif;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base);
  line-height: 1.6;
  background: #fff;
  color: #222;
}

/* ================================= */
/* HEADER */
/* ================================= */

.site-header {
  position: sticky;
  top: -100px;
  z-index: 9999;

  height: 100px;
  padding-left: 8rem;
  padding-right: 8rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: transparent;
  width: 100%;
  transition:
    transform 0.4s ease-out,
    box-shadow 0.4s ease-out,
    background-color 0.4s ease-out;
}

.site-header.is-fixed {
  transform: translateY(100px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
}

/* Logo area */
.site-header .site-branding {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
}

/* Prevent stretched logos */
.site-logo img,
.custom-logo {
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Navigation area */
.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  color: var(--global--color-6);
}

/* Menu layout */
.primary-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

/* Menu links */
.primary-navigation a {
  display: flex;
  align-items: center;
  height: auto;
  text-decoration: none;
  font-weight: 500;
  color: var(--global--color-3);
  transition: color 0.2s ease-in-out;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
  color: #fff;
}

.site-header.is-fixed .primary-navigation a {
  color: var(--global--color-2);
}

.site-header.is-fixed .primary-navigation a:hover,
.site-header.is-fixed .primary-navigation a:focus {
  color: var(--global--color-3);
}
#primary-menu .fa-linkedin::before {
  transition: all 0.2s ease-in-out;
  color: var(--global--color-3);
  border-color: var(--global--color-3);
  margin-left: 0;
}
#primary-menu .fa-linkedin:hover::before {
  color: #fff;
  border-color: #fff;
}

.site-header.is-fixed #primary-menu .fa-linkedin::before {
  color: var(--global--color-2);
  border-color: var(--global--color-2);
}
.site-header.is-fixed #primary-menu .fa-linkedin:hover::before {
  color: var(--global--color-3);
  border-color: var(--global--color-3);
}
#primary-menu #menu-item-209 {
  margin-right: 100px;
}

/* Scroll animation */
@keyframes header-style {
  from {
    background: transparent;
  }

  to {
    height: 100px;
    background: #ffffff;

    position: sticky;
  }
}

/* === Footer === */
.site-footer {
  background: var(--global--color-2);
  color: #fff;
  font-family: var(--global--font-primary);
}

/* --- Main footer area --- */
.footer-main {
  max-width: var(--content--max-width);
  margin: 0 auto;
  padding: var(--footer--padding) var(--global--spacing-horizontal);
  padding: 7rem 0 5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer23 {
  max-width: var(--content--max-width);
}

/* Left logo (1/3) */
.footer-logo {
  flex: 1 1 33%;
  display: flex;
  align-items: center;
}

.footer-logo img {
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* Right content (headline top, text left, button right) */
.footer-content {
  flex: 1 1 67%;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 1rem 1rem;
  text-align: left;
}

.footer-content p {
  grid-column: 1 / -1;
  font-size: 2.5rem;
  font-weight: 500 !important;
  line-height: 3rem;
  color: #fff;
  margin: 0;
  width: 75%;
}

.footer-button {
  grid-column: 2 / 3;
  align-self: start;
  background: var(--global--color-3);
  color: var(--global--color-2);
  border: none;
  font-weight: 200 !important;
  border-radius: 24px;
  padding: 13px 26px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 200;
  transition: background 0.2s ease-in-out;
  margin-top: 2rem;
  font-size: 16px;
}
.footer-button:hover {
  background: var(--global--color-1);
  color: var(--global--color-2);
}

/* --- Bottom stripe --- */
.footer-bottom {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 1rem var(--global--spacing-horizontal);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  width: 96%;
}

.footer-legal a {
  color: var(--global--color-3);
  text-decoration: none;
  margin-left: 1rem;
}

.footer-legal a:hover {
  color: var(--global--color-1);
}

/* --- Responsive behavior --- */
@media (max-width: 1024px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-logo {
    flex: none;
  }

  .footer-content {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .footer-content h3,
  .footer-content p {
    max-width: none;
  }

  .footer-button {
    align-self: flex-start;
  }
}

@media (max-width: 700px) {
  .footer-content {
    grid-template-columns: 1fr; /* single column */
    grid-template-rows: auto auto auto;
  }
  .footer-button {
    grid-column: 1 / -1;
    justify-self: start; /* left-aligned under the text */
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-main {
    padding: 2rem var(--global--spacing-horizontal);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-legal a {
    margin: 0 0.5rem;
  }
}

/* === Navigation Menu Button === */
#primary-mobile-menu {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  #primary-mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    background: var(--global--color-6);
    color: #fff;
  }

  /* Hide normal desktop menu on mobile */
  .primary-navigation .primary-menu-container {
    display: none;
  }
}
img.site-logo.site-logo--small {
  display: none;
}

@media (max-width: 768px) {
  .site-header {
    padding-right: 1rem;
  }
  .primary-navigation a {
    height: auto;
  }
  .primary-navigation ul {
    gap: 0;
  }
  .menu-item .fa-linkedin::before {
    margin-left: 0;
    font-size: 1rem;
  }
}

.page-id-3 #content,
.page-id-332 #content {
  margin-top: 250px;
}

@media (max-width: 768px) {
  .textblock__content {
    text-align: left !important;
    position: relative;
  }
  .fw-section-title {
    text-align: left;
    width: 80%;
  }
  .mobile-startheadline {
    padding-top: 3rem;
  }
  .mobile-startheadline2 {
    padding-top: 0;
  }
  .mobile-header #mobile-menu-toggle {
    font-size: 2.2rem;
  }
  .fw-section-actions {
    position: relative;
    width: 80%;
  }
  .fw-section-actions .fw-btn {
    position: absolute;
    left: 0;
  }
  #primary-menu .fa-linkedin::before {
    transition: all 0.2s ease-in-out;
    color: var(--global--color-2);
    border-color: var(--global--color-2);
    margin-left: 0;
    width: 36px;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  #post-87 .fw-anchor-nav {
    flex-flow: column;
    border-bottom: 0;
  }
  #post-87 .fw-anchor-nav a {
    width: 100%;
    position: relative;
    margin-bottom: 1rem;
  }
  #post-87 .fw-anchor-nav a::before {
    content: "";
    display: block;
    background: var(--global--color-3);
    height: 1px;
    width: 70%;
    left: 50%;
    transform: translateX(-50%);

    position: absolute;
    bottom: -0.5rem;
  }
  .expanded-close {
    top: -32px !important;
    right: 0 !important;
  }
  .modul__group--intro {
    text-align: left;
  }
  .modul__meilensteine-title {
    width: 80%;
    text-align: left !important;
    margin-left: auto;
    margin-right: auto;
  }

  .modul__meilenstein-text {
    text-align: left !important;
  }
  .modul__meilensteine-buttons {
    width: 80%;
    justify-content: flex-start;
  }
}

#mobile-menu-toggle {
  color: var(--global--color-3) !important;
}
