
/* Source: /assets/css/fonts.css */
/* montserrat-regular - latin */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v25-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/montserrat-v25-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/montserrat-v25-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/montserrat-v25-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../fonts/montserrat-v25-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/montserrat-v25-latin-regular.svg#Montserrat') format('svg'); /* Legacy iOS */
  }
  
  /* montserrat-700italic - latin */
  @font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/montserrat-v25-latin-700italic.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/montserrat-v25-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/montserrat-v25-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/montserrat-v25-latin-700italic.woff') format('woff'), /* Modern Browsers */
         url('../fonts/montserrat-v25-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/montserrat-v25-latin-700italic.svg#Montserrat') format('svg'); /* Legacy iOS */
  }
  

/* Source: /assets/css/renewal.css */
/* Roboto – lokal gehostet */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/Roboto-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/Roboto-LightItalic.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Roboto-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Roboto-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Roboto-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Roboto-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Roboto-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Roboto-BoldItalic.ttf') format('truetype');
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', Arial, sans-serif;
}

.form-required-note {
  display: block;
  margin-top: .75rem;
  margin-bottom: 0;
  font-size: .8rem;
  color: rgba(0, 0, 0, 0.75);
  text-align: right;
}

/* Bigger Font */
html,
#footer-container #footer #legal-wrap,
.top-bar .topbar-container .top-bar-right .menu li:not(.is-submenu-item) a,
.post-meta {
  /* font size (+ header and footer) 1rem, only paragraph 1.3 */
  /* Menu without rem */

  font-size: 1rem;
}
.off-canvas-wrapper .off-canvas .menu li a {
  font-size: 1.3rem;
}
@media screen and (min-width: 1024px) {
  .top-bar .topbar-container .top-bar-right .menu li:not(.is-submenu-item) a {
    font-size: 1.1rem;
  }
  .dropdown .menu-item > a::after {
    top: 40%;
  }
}
.main-content,
[role='main'] {
  font-size: 1.3rem;
}

/* Reduce font size for headings a bit */
html h1 {
  font-size: 2rem;
}
html h2 {
  font-size: 1.5rem;
}
html h3 {
  font-size: 1.25rem;
}
html h4 {
  font-size: 1.15rem;
}
html h5,
html h6 {
  font-size: 1rem;
}

.mapjob-h1-widget--align-left {
  text-align: left;
}

.mapjob-h1-widget--align-center {
  text-align: center;
}

.mapjob-h1-widget--primary {
  color: #2d336b;
}

.mapjob-visually-hidden-h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* Reduce font size for print */
@media print {
  html {
    font-size: 1rem !important;
  }
}

/* Replace logo sizes with fixed pixel sizes instead of rem */
#home-logo a #home-logo-image {
  height: 36px;
}
@media screen and (min-width: 1024px) {
  #home-logo a #home-logo-image {
    height: 115px;
    margin: 2px .5rem 2px 0;
  }
  #home-logo a #home-logo-image {
    background-position: center;
  }
}

/* Decreases maximum page width */
body .container .main-content,
#home-page,
.row,
.search .searchfield,
.search-results .main-content .search h1,
.top-bar .topbar-container,
#footer-container #footer .footer-secondary {
  max-width: 70rem;
}

/* Update the Latest Job Widget for the Bigger Font */
#home-page
  .side-bar
  .latest-vacancies-container
  .latest-vacancies-listing-container
  .latest-vacancies-listing,
#home-page
  .side-bar
  .latest-vacancies-container
  .latest-vacancies-listing-container
  .latest-vacancies-listing
  .vacancy-entry {
  height: auto;
}
@keyframes vacancy-scroll {
  100% {
    transform: translateY(-50%);
  }
}
@media screen and (min-width: 64em) {
  #home-page
    .side-bar
    .latest-vacancies-container
    .latest-vacancies-listing-container
    .latest-vacancies-listing {
    animation: vacancy-scroll 18s linear infinite;
  }
  #home-page .side-bar .latest-vacancies-container,
  #home-page
    .side-bar
    .latest-vacancies-container
    .latest-vacancies-listing-container {
    height: 600px;
  }
  #home-page
    .side-bar
    .latest-vacancies-container
    .latest-vacancies-listing-container {
    margin-left: 0.5rem;
  }
}
/* Hide cloned vacancies from the widget when the animation is not active */
@media screen and (max-width: 1023px) {
  #home-page
    .side-bar
    .latest-vacancies-container
    .latest-vacancies-listing-container
    .latest-vacancies-listing
    .vacancy-entry--cloned {
    display: none;
  }
}

/* More Line Height */
body p,
body li,
body dd {
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

/* Rework Buttons */
.mapjob-button {
  display: inline-block;
  font-weight: 600;
  color: #fff;
  border: 0;
  padding: 0.625rem 1rem;
  border-radius: 3px;
  box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3),
    0px 2px 6px 2px rgba(60, 64, 67, 0.15);
}

/* Increase margin-top for print button */
.entry-content #print-button {
  margin-top: 1.5rem;
}

/* Rework Mobile Menu */
.is-open-right {
  transform: translateX(-350px);
}
.off-canvas.position-right {
  right: -350px;
  width: 350px;
}
.menu.nested {
  margin-left: 0.5rem;
}
.vertical.menu {
  padding: 0;
}
.off-canvas-wrapper .off-canvas .menu li a {
  word-break: break-all;
}

/* (Almost) Fix WP Admin Offset */
body.admin-bar .title-bar {
  top: 46px !important;
}
body.admin-bar .off-canvas-wrapper-inner.is-off-canvas-open .title-bar {
  top: 0 !important;
}
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
  body.admin-bar .off-canvas-wrapper-inner:not(.is-off-canvas-open) .title-bar {
    top: 46px !important;
  }
}
@media screen and (min-width: 782px) {
  body.admin-bar .off-canvas-wrapper-inner:not(.is-off-canvas-open) .title-bar {
    top: 32px !important;
  }
}

/* Prevent Menu Items from Overflowing the Viewport */
@media screen and (max-width: 1200px) {
  .top-bar .topbar-container .top-bar-right {
    padding-left: 0;
  }
}
.top-bar .topbar-container .top-bar-right .menu li:not(.menu-text) > a {
  padding: 0.625rem;
}
.top-bar
  .topbar-container
  .top-bar-right
  .menu
  li.is-dropdown-submenu-parent:not(.is-dropdown-submenu-item)
  > a {
  padding: 0.625rem 1.5rem 0.625rem 0.625rem;
}

/* Updating Post Header with Featured Image and Text Overlay */
.featured-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 1rem;
  text-align: center;
}

.featured-hero header {
  max-width: 100ch;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.55);
  color: #eee;
}

/* Update Footer Content */
#footer .brand p,
#footer .copy p {
  margin-bottom: 0.3rem;
}
#footer-container #footer .footer-secondary {
  text-align: left;
}
@media screen and (max-width: 1023px) {
  #footer-container #footer .footer-secondary #legal-wrap #legal-inner .brand {
    display: block;
    float: none;
  }
  #footer-container #footer .footer-secondary #legal-wrap #legal-inner .copy {
    display: block;
    margin-left: 0;
    text-align: left;
    float: none;
  }
}

/* Add Contact Buttons to Mobile Menu */
.off-canvas-wrapper .off-canvas .contact-menu {
  display: flex;
  justify-content: space-around;
}
.off-canvas-wrapper .off-canvas .contact-menu a {
  padding: 1rem;
  flex: 1 0 auto;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-top: 0;
  border-left: 0;
}
.off-canvas-wrapper .off-canvas .contact-menu a:focus,
.off-canvas-wrapper .off-canvas .contact-menu a:hover {
  color: #f8f8ff;
  background: #293262;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}
.off-canvas-wrapper .off-canvas .contact-menu a:last-child {
  border-right: 0;
}

/* Update Form Styles (shorter input fields) */
form.wpcf7-form {
  max-width: 100ch;
}

/* Add Application Form to Vacancy (added via shortcode) */
.online-application {
  margin-bottom: 1rem;
}
.online-application summary {
  display: inline-block;
  position: relative;
  font-weight: 700;
  padding: 0.5rem 1.5rem 0.5rem 0.5rem;
  cursor: pointer;
}
.online-application[open] summary.mapjob-button {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.online-application summary::after {
  position: absolute;
  content: '';
  right: 0.5rem;
  width: 0;
  height: 0;
  border: 5px inset;
  border-top-style: solid;
  border-bottom-width: 0;
  top: 50%;
  transform: translateY(-50%);
  border-color: #000 transparent transparent;
}
.online-application-form {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: 2px solid rgb(41, 50, 98);
  border-radius: 5px;
  border-top-left-radius: 0;
  box-shadow: inset 0px 1px 2px rgba(60, 64, 67, 0.3),
    0px 2px 6px 2px rgba(60, 64, 67, 0.15);
}

/* Add Vacancy Sidebar (Widget Area) */
/*
.off-canvas-wrapper {
    sticky doesn't work if any of the parents has an overflow setting 
    other than visible. The off-canvas-wrapper has overflow-x: hidden.
    The only way to get sticky to work within such a container is by setting
    a height explicitly.
  TODO this caused weird quirks, is sticky really necessary?
  height: 100%;
}*/
.vacancy-sidebar .sub-header {
  margin-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
}
.vacancy-sidebar .vacancy-entry + .vacancy-entry {
  margin-top: 1rem;
}
.vacancy-sidebar .vacancy-entry p {
  margin: 0;
  font-size: 90%;
  opacity: 0.8;
  font-style: italic;
}

@media screen and (min-width: 782px) {
  .vacancy-content.has-sidebar {
    display: flex;
  }
  .vacancy-content .vacancy-sidebar {
    position: sticky;
    top: calc(52px + 1rem);
    align-self: start;
    flex: 1 0 300px;
    margin-left: 4rem;
  }
}
@media screen and (min-width: 640px) {
  .vacancy-content .vacancy-sidebar {
    top: calc(60px + 1rem);
  }
}
@media screen and (min-width: 1024px) {
  .vacancy-content .vacancy-sidebar {
    top: calc(150px + 1rem);
  }
}

/* Hide unnecessary sidebar information on print views */
@media print {
  .vacancy-sidebar {
    page-break-after: avoid;
  }
  .vacancy-sidebar img,
  .vacancy-sidebar .widget_sp_image-description small:first-of-type,
  .vacancy-sidebar .widget_text {
    font-size: 0 !important;
    display: none !important;
  }
  .vacancy-sidebar .widget_sp_image-description a[href]:after {
    content: none !important;
  }
  .vacancy-sidebar .sub-header {
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
  }
}

/* Reduce Padding in Footer */
#footer-container #footer .footer-secondary #legal-wrap {
  padding-bottom: 2rem;
}

/* Increase margin of search results header */
.search-results .main-content .search h1 {
  margin-top: 0.9375rem;
}

/* ==========================================================================
   Floating Contact Buttons (right edge, all pages) — Glassmorphism 2026
   ========================================================================== */
.floating-contact {
    position: fixed;
    right: 0;
    top: 65%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.floating-contact__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    text-decoration: none;
    border-radius: 12px 0 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
    /* Glassmorphism-Overlay auf Farbe */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: -3px 3px 14px rgba(0, 0, 0, 0.15);
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.28s ease,
                box-shadow 0.28s ease;
    color: #fff;
}

.floating-contact__btn--phone {
    background: rgba(41, 50, 98, 0.82);
}

.floating-contact__btn--mail {
    background: rgba(0, 162, 133, 0.82);
}

.floating-contact__btn:hover {
    width: 60px;
    box-shadow: -4px 4px 18px rgba(0, 0, 0, 0.2);
}

.floating-contact__btn--phone:hover {
    background: rgba(41, 50, 98, 0.95);
    color: #fff;
}

.floating-contact__btn--mail:hover {
    background: rgba(0, 162, 133, 0.95);
    color: #fff;
}

.floating-contact__btn svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-contact__btn:hover svg {
    transform: translateX(-4px);
}

/* Hide on print */
@media print {
    .floating-contact {
        display: none !important;
    }
}


/* Source: /assets/css/footer-redesign.css */
/* ==========================================================================
   Footer Redesign 2026
   Replaces the old FoundationPress footer layout.
   ========================================================================== */

/* ── Reset old footer chrome ── */
#footer-container {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}
#footer-container #footer {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}
#footer-container #footer .footer-primary {
    display: none !important;
}
#footer-container #footer .footer-secondary {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    max-width: none;
    text-align: left;
}

/* ── New footer shell ── */
.site-footer {
    background: #1a2050;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.7;
    position: relative;
}

/* Gradient accent line at the very top */
.site-footer::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #293262 0%, #00a285 100%);
}

/* ── Inner layout ── */
.site-footer__inner {
    max-width: 70rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 2.5rem 3rem;
}

@media (max-width: 860px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 2rem;
    }
}
@media (max-width: 540px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.25rem 1.5rem;
    }
}

/* ── Column: Brand ── */
.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.site-footer__logo {
    display: block;
    width: 140px;
    height: auto;
}
.site-footer__tagline {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.83rem;
    margin: 0;
    line-height: 1.5;
}

/* ── Column headings ── */
.site-footer__col-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00a285;
    margin: 0 0 0.9rem;
}

/* ── Navigation links ── */
.site-footer__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.site-footer__nav li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer__nav li a:hover {
    color: #00a285;
    text-decoration: none;
}

/* ── Contact block ── */
.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.site-footer__contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
}
.site-footer__contact-row svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: #00a285;
}
.site-footer__contact-row a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer__contact-row a:hover {
    color: #00a285;
    text-decoration: none;
}

/* ── Copyright bar ── */
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 70rem;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}
.site-footer__bottom a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer__bottom a:hover {
    color: #00a285;
    text-decoration: none;
}
.site-footer__legal-links {
    display: flex;
    gap: 1.25rem;
}


/* Source: /assets/css/frontpage-overhaul.css */
/* ==========================================================================
   Startseite Overhaul März 2026
   ========================================================================== */

/* ---------- Glasmorphism utility ---------- */
.startseite-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

/* ---------- Hero Section ---------- */
.startseite-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  margin-top: 0;
  overflow: hidden;
}
@media screen and (min-width: 40em) {
  .startseite-hero {
    min-height: 760px;
  }
}
@media screen and (min-width: 64em) {
  .startseite-hero {
    min-height: 70vh;
    margin-top: 0;
  }
}

/* Background image — focal point via CSS custom properties
   Mobile:  center image horizontally (form overlaps people = OK)
   Tablet+: use focal point from backend sliders so people stay visible */
.startseite-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.startseite-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--hero-focal-y, 33%);
  display: block;
  /* Promote to own GPU layer — prevents blurriness caused by
     backdrop-filter compositing from the glassmorphism search card */
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* Tablet: start using the focal point */
@media screen and (min-width: 40em) {
  .startseite-hero-img {
    object-position: var(--hero-focal-x, 50%) var(--hero-focal-y, 33%);
  }
}
.startseite-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(41, 50, 98, 0.03) 0%,
    rgba(41, 50, 98, 0.08) 55%,
    rgba(41, 50, 98, 0.15) 100%
  );
}

/* ---------- Hero inner layout (headline + search) ---------- */
.startseite-hero-inner {
  position: static;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media screen and (min-width: 40em) {
  .startseite-hero-inner {
    padding: 8rem 2rem 5rem;
    gap: 2rem;
  }
}
@media screen and (min-width: 64em) {
  .startseite-hero-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 9rem 2.5rem 5rem;
    gap: 0;
  }
}

/* Headline sits centered in the upper hero image area */
.startseite-hero-headline {
  position: absolute;
  top: clamp(0.75rem, 3.5vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 62rem;
  font-size: clamp(1.4rem, min(1.9rem, 5vh), 1.9rem);
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
  font-weight: 800;
  text-align: center;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    0 6px 24px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.7);
  -webkit-font-smoothing: antialiased;
}
@media screen and (min-width: 25em) {
  .startseite-hero-headline {
    top: clamp(1rem, 4vh, 2.5rem);
    font-size: clamp(1.4rem, min(2.2rem, 5.5vh), 2.2rem);
  }
}
@media screen and (min-width: 30em) {
  .startseite-hero-headline {
    top: clamp(1rem, 4vh, 2.5rem);
    font-size: clamp(1.5rem, min(2.5rem, 6vh), 2.5rem);
  }
}
@media screen and (min-width: 35em) {
  .startseite-hero-headline {
    top: clamp(1rem, 4vh, 2.5rem);
    font-size: clamp(1.6rem, min(2.9rem, 6.5vh), 2.7rem);
  }
}
@media screen and (min-width: 40em) {
  .startseite-hero-headline {
    top: clamp(1rem, 4vh, 2.5rem);
    font-size: clamp(1.6rem, min(2.9rem, 7vh), 2.8rem);
  }
}
@media screen and (min-width: 64em) {
  .startseite-hero-headline {
    top: clamp(1.25rem, 5vh, 3rem);
    font-size: clamp(1.7rem, min(3.1rem, 7vh), 2.9rem);
    text-align: center;
    white-space: nowrap;
  }
}

/* ---------- Search wrap (right-aligned on desktop, glassmorphism bg) ---------- */
.startseite-hero-search-wrap {
  width: 100%;
  max-width: 500px;
  /* Glassmorphism background */
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
}
@media screen and (min-width: 64em) {
  .startseite-hero-search-wrap {
    width: 480px;
    margin-left: auto;
  }
}
@media screen and (min-width: 80em) {
  .startseite-hero-search-wrap {
    width: 500px;
  }
}

/* Reset searchfield wrapper */
.startseite-hero-search-wrap .searchfield {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.75rem;
}
.startseite-hero-search-wrap .searchfield .hero-search-form {
  display: block !important;
}

/* ---------- Hero search buttons ---------- */
.hero-search-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  line-height: 1.4;
}

/* "Ganze Jobbörse ansehen" — dark navy */
.hero-search-btn--jobs {
  background: #293262;
  color: #fff !important;
  font-size: 1.2rem;
}
.hero-search-btn--jobs:hover {
  background: #1e2449;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(41, 50, 98, 0.3);
}

/* "Initiativbewerbung" — green */
.hero-search-btn--initiative {
  background: #00a285;
  color: #fff !important;
  font-size: 1.2rem;
}
.hero-search-btn--initiative:hover {
  background: #008d73;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0, 162, 133, 0.3);
}

/* ---------- Search form ---------- */
.hero-search-form {
  margin: 0;
}
.hero-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.hero-search-input {
  width: 100%;
  height: 3.25rem;
  padding: 0 3.25rem 0 1.1rem !important;
  border: 2px solid #d0d4e8 !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #293262 !important;
  font-size: 1.1rem !important;
  margin: 0 !important;
  outline: none;
  transition: border-color 0.2s ease;
}
.hero-search-input:focus {
  border-color: #293262 !important;
}
.hero-search-input::placeholder {
  color: #888 !important;
  font-style: normal;
}
.hero-search-icon-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  color: #293262;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
}
.hero-search-icon-btn:hover {
  color: #00a285;
}

/* ---------- Responsive adjustments for search ---------- */
@media screen and (min-width: 40em) {
  .hero-search-btn {
    padding: 1.05rem 1.5rem;
    font-size: 1.2rem;
  }
  .hero-search-input {
    height: 3.4rem;
    font-size: 1.15rem !important;
  }
}
@media screen and (min-width: 64em) {
  .hero-search-btn {
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
  }
  .hero-search-input {
    height: 3.4rem;
    font-size: 1.15rem !important;
  }
}

/* ---------- #searchbox-container fallback (blog home) ---------- */
#searchbox-container .searchfield {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}
#searchbox-container .hero-search-btn--jobs {
  background: #293262;
}
#searchbox-container .hero-search-btn--initiative {
  background: #00a285;
}

/* ---------- Horizontal ticker bar (Aktienticker) ---------- */
.startseite-tickerbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  border-radius: 0;
  border: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -42px; /* overlap hero bottom */
}
/* Label on the left */
.startseite-tickerbar-label {
  flex-shrink: 0;
  padding: 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 42px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.startseite-tickerbar-label:hover {
  color: rgba(255, 255, 255, 0.9);
}
/* Track: holds the horizontally scrolling items */
.startseite-tickerbar-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 100%;
}

/* Override Foundation grid classes */
.startseite-tickerbar article.widget.row {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  width: 100% !important;
}
.startseite-tickerbar article.widget.row::before,
.startseite-tickerbar article.widget.row::after {
  display: none !important;
}
.startseite-tickerbar article.widget .columns {
  padding: 0 !important;
  height: 100%;
  width: 100% !important;
  float: none !important;
}
.startseite-tickerbar article.widget h6.sub-header,
.startseite-tickerbar .latest-vacancies-title {
  display: none;
}
.startseite-tickerbar .latest-vacancies-container {
  width: 100%;
  height: 42px;
  overflow: hidden;
  padding-left: 0;
  position: relative;
}
.startseite-tickerbar .latest-vacancies-listing-container {
  width: 100%;
  height: 42px;
  overflow: hidden;
}
/* Horizontal scrolling row */
.startseite-tickerbar .latest-vacancies-listing {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  height: 42px;
  margin: 0;
  padding: 0 1rem;
  list-style: none;
  position: relative;
  /* Mobile: längere Duration = langsamere Geschwindigkeit,
     weil dasselbe px/s auf kleinem Viewport optisch rasend schnell wirkt */
  animation: startseite-ticker-scroll 100s linear infinite;
  width: max-content;
}
@media screen and (min-width: 700px) {
  .startseite-tickerbar .latest-vacancies-listing {
    animation-duration: 75s;
  }
}
@media screen and (min-width: 1280px) {
  .startseite-tickerbar .latest-vacancies-listing {
    animation-duration: 55s;
  }
}
.startseite-tickerbar .latest-vacancies-listing:hover {
  animation-play-state: paused;
}
/* Each entry inline */
.startseite-tickerbar .vacancy-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  height: auto;
  margin: 0;
  padding: 0 1.2rem 0 0;
  border: none;
  white-space: nowrap;
}
/* Dot separator */
.startseite-tickerbar .vacancy-entry + .vacancy-entry::before {
  content: "\2022";
  color: rgba(255, 255, 255, 0.35);
  margin-right: 1.2rem;
  font-size: 0.6rem;
}
.startseite-tickerbar .vacancy-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1;
}
.startseite-tickerbar .vacancy-entry a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.startseite-tickerbar .vacancy-entry a:hover {
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.4);
}

@keyframes startseite-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Main Content ---------- */
.startseite-content {
  max-width: 70rem;
  margin: 0 auto;
  padding: 2.5rem 0.9375rem 3rem;
}

/* About Text */
.startseite-about {
  background: #fff;
  border-left: 4px solid #00a285;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  font-size: 1.05rem;
}
.startseite-about p:last-child {
  margin-bottom: 0;
}

/* Two Column Boxes */
.startseite-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.startseite-box {
  flex: 1 1 300px;
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 3px solid #293262;
  transition: box-shadow 0.25s, transform 0.25s;
}
.startseite-box:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}
.startseite-box h2 {
  color: #293262;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.startseite-box p {
}
.startseite-box p:last-child {
  margin-bottom: 0;
}

/* CTA */
.startseite-cta {
  text-align: center;
  margin: 3rem 0 1rem;
}
.startseite-cta a {
  display: inline-block;
  background: #00a285;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s, box-shadow 0.25s;
  box-shadow: 0 3px 12px rgba(0, 162, 133, 0.3);
}
.startseite-cta a:hover {
  background: #008d73;
  box-shadow: 0 5px 20px rgba(0, 162, 133, 0.4);
  color: #fff;
}

/* ── Slider Section ──────────────────────────────────────────────────────── */
.startseite-slider-section {
  max-width: 72rem;
  margin: 3rem auto 4rem;
  padding: 0 0.9375rem;
}

/* ── Button + Track Wrapper ──────────────────────────────────────────────── */
.startseite-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Scrollable list ─────────────────────────────────────────────────────── */
.startseite-slider {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  flex: 1;
  min-width: 0;

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 18rem);

  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;

  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  /* Thin scrollbar on mobile / fallback */
  scrollbar-width: thin;
  scrollbar-color: #00a285 #e6e6e6;
}

/* Desktop: hide scrollbar — buttons handle nav */
@media screen and (min-width: 40em) {
  .startseite-slider {
    scrollbar-width: none;
    grid-auto-columns: calc(50% - 0.625rem);
  }
  .startseite-slider::-webkit-scrollbar {
    display: none;
  }
}

@media screen and (min-width: 64em) {
  .startseite-slider {
    grid-auto-columns: calc(33.333% - 0.84rem);
  }
}

.startseite-slider::-webkit-scrollbar {
  height: 5px;
}
.startseite-slider::-webkit-scrollbar-track {
  background: #e6e6e6;
  border-radius: 999px;
}
.startseite-slider::-webkit-scrollbar-thumb {
  background: #00a285;
  border-radius: 999px;
}

/* ── Prev / Next Buttons ─────────────────────────────────────────────────── */
.startseite-slider-btn {
  display: none; /* Mobile: touch-scroll, no buttons needed */
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 2px 8px rgba(41, 50, 98, 0.12),
    0 6px 20px rgba(41, 50, 98, 0.14);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  color: #293262;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.startseite-slider-btn:hover {
  background: #00a285;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 162, 133, 0.4);
  transform: scale(1.1);
}

.startseite-slider-btn:active {
  transform: scale(0.95);
}

@media screen and (min-width: 40em) {
  .startseite-slider-btn {
    display: grid;
    place-items: center;
  }
}

/* ── Einzelne Karte (full-image, kein Caption-Streifen) ──────────────────── */
.startseite-slide {
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #dde2ec;
}

/* Farbschleier-Overlay */
.startseite-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #293262;
  opacity: 0.2;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.startseite-slide:hover::after {
  opacity: 0;
}

/* ── Bildbehälter füllt gesamte Karte ───────────────────────────────────── */
.startseite-slide-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.startseite-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.startseite-slide:hover .startseite-slide-img {
  transform: scale(1.03);
}




/* Source: /assets/css/slider-redesign.css */
/* ==========================================================================
   Carousel Redesign – Platzhirsch-Style Fullwidth Carousel
   Full-width slides, crossfade transition, text fades in from left
   ========================================================================== */

/* ── CAROUSEL WRAPPER (Container width) ──────────────────────────────────── */
.ph-carousel {
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  height: 520px;
  overflow: hidden;
  background: #1a1a1a;
}

@media screen and (min-width: 40em) {
  .ph-carousel { height: 620px; }
}

@media screen and (min-width: 64em) {
  .ph-carousel { height: 750px; }
}

/* ── VIEWPORT (stacks slides absolutely) ────────────────────────────────── */
.ph-carousel__viewport {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── SINGLE SLIDE ───────────────────────────────────────────────────────── */
.ph-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  z-index: 0;
}

.ph-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* ── SLIDE IMAGE ────────────────────────────────────────────────────────── */
.ph-carousel__slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position & transform (zoom) are set via inline style from WP backend */
  transform-origin: center center;
  display: block;
}

/* ── DARK OVERLAY for text readability (bottom-to-top, portrait-style) ─── */
.ph-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 25%,
    rgba(0, 0, 0, 0.20) 55%,
    transparent 80%
  );
  z-index: 1;
}

/* ── TEXT CONTENT (left-aligned, fades in from left) ────────────────────── */
.ph-carousel__content {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  z-index: 2;
  color: #ffffff;
}

@media screen and (min-width: 40em) {
  .ph-carousel__content {
    width: 45%;
    padding: 3rem 3rem 3rem 5rem;
  }
}

@media screen and (min-width: 64em) {
  .ph-carousel__content {
    width: 42%;
    padding: 4rem 4.5rem 4rem 6rem;
  }
}

/* ── Fade-in-from-left for content children ─────────────────────────────── */
.ph-carousel__title,
.ph-carousel__desc {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ph-carousel__slide.is-active .ph-carousel__title {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

.ph-carousel__slide.is-active .ph-carousel__desc {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.5s;
}

/* ── Title ──────────────────────────────────────────────────────────────── */
.ph-carousel__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #00a285;
  margin: 0 0 0.8rem 0;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

@media screen and (min-width: 40em) {
  .ph-carousel__title { font-size: 2.2rem; }
}

@media screen and (min-width: 64em) {
  .ph-carousel__title { font-size: 2.8rem; margin-bottom: 1.2rem; }
}

/* ── Description (RichText) ─────────────────────────────────────────────── */
.ph-carousel__desc {
  font-size: 0.95rem;
  color: #d5d5d5;
  max-width: 100%;
}

@media screen and (min-width: 40em) {
  .ph-carousel__desc { font-size: 1.05rem; }
}

@media screen and (min-width: 64em) {
  .ph-carousel__desc { font-size: 1.15rem; }
}

.ph-carousel__desc p {
  margin: 0 0 0.6rem 0;
}

.ph-carousel__desc p:last-child {
  margin-bottom: 0;
}

.ph-carousel__desc strong {
  color: #ffffff;
  font-weight: 700;
}

.ph-carousel__desc a {
  color: #00d4a8;
  text-decoration: none;
  border-bottom: 2px solid #00d4a8;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ph-carousel__desc a:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* ── CAPTION (Headline + Subline – bottom-left) ────────────────────────── */
.ph-carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem 2.5rem;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ph-carousel__slide.is-active .ph-carousel__caption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.ph-carousel__headline {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.ph-carousel__subline {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 0.2rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

@media screen and (min-width: 40em) {
  .ph-carousel__caption {
    padding: 2rem 3rem 3rem 5rem;
  }
  .ph-carousel__headline { font-size: 2rem; }
  .ph-carousel__subline  { font-size: 1.1rem; }
}

@media screen and (min-width: 64em) {
  .ph-carousel__caption {
    padding: 2.5rem 4.5rem 3rem 6rem;
  }
  .ph-carousel__headline { font-size: 2.4rem; }
  .ph-carousel__subline  { font-size: 1.2rem; }
}

/* ── NAVIGATION ARROWS ──────────────────────────────────────────────────── */
.ph-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.ph-carousel__arrow:hover {
  background: rgba(0, 162, 133, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.ph-carousel__arrow--prev { left: 1rem; }
.ph-carousel__arrow--next { right: 1rem; }

@media screen and (min-width: 40em) {
  .ph-carousel__arrow {
    display: flex;
  }
}

@media screen and (min-width: 64em) {
  .ph-carousel__arrow {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }
  .ph-carousel__arrow--prev { left: 2rem; }
  .ph-carousel__arrow--next { right: 2rem; }
}

/* ── DOT INDICATORS ─────────────────────────────────────────────────────── */
.ph-carousel__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.6rem;
}

.ph-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ph-carousel__dot:hover {
  border-color: #ffffff;
  transform: scale(1.2);
}

.ph-carousel__dot.is-active {
  background: #00a285;
  border-color: #00a285;
  transform: scale(1.15);
}

/* ── MOBILE adjustments ─────────────────────────────────────────────────── */
@media screen and (max-width: 39.9375em) {
  .ph-carousel__content {
    width: 85%;
    padding: 2rem 1.5rem;
  }

  .ph-carousel__overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.60) 30%,
      rgba(0, 0, 0, 0.25) 60%,
      transparent 85%
    );
  }
}

/* ── PROGRESS BAR (optional autoplay indicator) ─────────────────────────── */
.ph-carousel__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #00a285;
  z-index: 6;
  width: 0;
  transition: width linear;
}

.ph-carousel.is-playing .ph-carousel__progress {
  width: 100%;
}

/* ── ACCESSIBILITY: Prefers Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ph-carousel__slide {
    transition: none !important;
  }

  .ph-carousel__slide.is-active {
    animation: none !important;
  }

  .ph-carousel__logo,
  .ph-carousel__title,
  .ph-carousel__desc {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}



/* Source: /assets/css/modulares-grid.css */
/* ═══════════════════════════════════════════════════════════════════════
   Modulares Grid – Startseite Kachel-Zeilen
   ═══════════════════════════════════════════════════════════════════════ */

.modulares-grid {
    max-width: 70rem;
    margin: 2rem auto;
    padding: 0 0.9375rem;
    /* Brand-navy background shows as hairline between tiles → modern grid look */
    background: transparent;
}

/* Each row: two equal tiles side by side */
.mgrid-row {
    display: flex;
    gap: 4px;          /* brand-color gap = modern grid line */
    margin-bottom: 4px;
}
.mgrid-row:last-child {
    margin-bottom: 0;
}

.mgrid-tile {
    flex: 1 1 0;          /* flex-grow fills gap-corrected width automatically */
    min-width: 0;
    aspect-ratio: 1;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-repeat: no-repeat;
    box-shadow: 0 2px 12px rgba(41, 50, 98, 0.10);
    transition: box-shadow 0.3s ease;
}
.mgrid-tile:hover {
    box-shadow: 0 6px 28px rgba(41, 50, 98, 0.22);
}

/* Image tile */
.mgrid-tile--image {
    background-color: #ddd;
}

.mgrid-tile-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.mgrid-tile-link::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Cinematic gradient overlay — matches hero overlay direction */
    background: linear-gradient(
        to top,
        rgba(41, 50, 98, 0.45) 0%,
        rgba(41, 50, 98, 0.12) 45%,
        transparent 75%
    );
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.mgrid-tile__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--mgrid-pos-x, 50%) var(--mgrid-pos-y, 50%);
    transition: transform 0.45s ease;
    transform-origin: center center;
    transform: scale(var(--mgrid-image-scale, 1));
}

.mgrid-tile__image:hover {
    cursor: pointer;
}

.mgrid-tile--image:hover .mgrid-tile__image,
.mgrid-tile--image:focus-within .mgrid-tile__image {
    transform: scale(calc(var(--mgrid-image-scale, 1) * 1.05));
}

.mgrid-tile--image:hover .mgrid-tile-link::after,
.mgrid-tile--image:focus-within .mgrid-tile-link::after {
    opacity: 0;
}

/* Text tile */
.mgrid-tile--text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.mgrid-tile__content {
    width: 100%;
    font-size: clamp(0.8rem, 1.6vw, 1.1rem);
    line-height: 1.5;
}

.mgrid-tile__content a {
    color: var(--mgrid-link-color, #0073aa);
}

/* ── Heading base: underline via text-decoration (per line, text-width only) ── */
.mgrid-tile__content h1,
.mgrid-tile__content h2,
.mgrid-tile__content h3,
.mgrid-tile__content h4,
.mgrid-tile__content h5 {
    color: inherit;
    display: block;          /* block so text-align: center from TinyMCE works */
    margin-bottom: 0.6em;
    letter-spacing: -0.015em;   /* tight tracking — matches hero headline style */
    /* Underline intrudes into the text from below, decorates each line individually */
    text-decoration: underline;
    text-decoration-color: var(--mgrid-heading-underline-color, color-mix(in srgb, currentColor 25%, transparent));
    text-decoration-thickness: 0.3em;
    text-underline-offset: -0.05em;  /* negative: moves underline up into cap-height */
    text-decoration-skip-ink: none;  /* no gaps at descenders */
}

/* ::after no longer needed — underline handled by text-decoration above */

.mgrid-tile__content h1 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700;   /* matches hero headline weight */
}

.mgrid-tile__content h2 {
    font-size: clamp(1rem, 2vw, 1.6rem);
    font-weight: 700;
}

.mgrid-tile__content h3 {
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    font-weight: 600;
}

.mgrid-tile__content h4 {
    font-size: clamp(0.85rem, 1.5vw, 1.15rem);
    font-weight: 500;
}

.mgrid-tile__content h5 {
    font-size: clamp(0.8rem, 1.3vw, 1rem);
    font-weight: 500;
}

.mgrid-tile__content p {
    color: inherit;
    margin-bottom: 0.4em;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .mgrid-row {
        flex-direction: column;
    }

    .mgrid-tile {
        flex: 0 0 100%;
        width: 100%;
        aspect-ratio: auto;
        min-height: 0;
    }

    .mgrid-tile--image {
        aspect-ratio: 4 / 3;
    }

    .mgrid-tile--text {
        padding: clamp(1.5rem, 5vw, 2.5rem);
    }

    .mgrid-tile__content {
        font-size: clamp(0.75rem, 3.5vw, 1rem);
    }

    .mgrid-tile__content h1 {
        font-size: clamp(1rem, 5vw, 1.5rem);
    }

    .mgrid-tile__content h2 {
        font-size: clamp(0.9rem, 4.5vw, 1.3rem);
    }

    .mgrid-tile__content h3 {
        font-size: clamp(0.85rem, 4vw, 1.15rem);
    }

    .mgrid-tile__content h4 {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }

    .mgrid-tile:first-child {
        order: var(--mgrid-mobile-order-left, 0);
    }

    .mgrid-tile:last-child {
        order: var(--mgrid-mobile-order-right, 1);
    }
}


/* Source: /assets/css/header-redesign.css */
/* ==========================================================================
   Header Re-Design 2026
   Invertiertes Design: weißer Hintergrund, blaue Schrift (#293262)
   Neues Logo: Logo_Header.svg (PNG-Fallback: Logo_Header.png)
   ========================================================================== */

/* ── Hauptnavigationsleiste (Desktop) ── */
#site-navigation {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(41, 50, 98, 0.12);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  /* Override fixed/sticky positioning from style.css + Foundation */
  position: relative !important;
  left: auto !important;
  top: auto !important;
  z-index: 10;
}

/* Remove Foundation sticky behaviour from header elements */
#masthead .sticky.is-stuck,
#masthead .sticky.is-at-top {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
}

/* Title-bar (mobile) should also not be fixed */
.title-bar.sticky.is-stuck,
.title-bar.sticky.is-at-top {
  position: relative !important;
  top: auto !important;
}

/* ── Topbar-Container: mehr vertikaler Raum für Logo ── */
#site-navigation .topbar-container {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* ── Mobile / Tablet Title-Bar ── */
.title-bar {
  background: #ffffff !important;
  color: #293262 !important;
  box-shadow: 0 2px 6px rgba(41, 50, 98, 0.1);
  padding: 0.85rem 0.75rem;
  min-height: 60px;
  display: flex;
  align-items: center;
}

/* Hamburger-Icon auf weißem Hintergrund: dunkelblau */
.title-bar .menu-icon::after {
  background: #293262;
  box-shadow: 0 7px 0 #293262, 0 14px 0 #293262;
}
.title-bar .menu-icon:hover::after {
  background: #1a2040;
  box-shadow: 0 7px 0 #1a2040, 0 14px 0 #1a2040;
}

/* Title-Bar Texte und Logo-Link ── */
.title-bar-title a,
.title-bar .title a {
  color: #293262 !important;
}
.title-bar .show-on-scroll .title-bar-title a {
  color: #293262 !important;
}
.title-bar .show-on-scroll .title-bar-title a:hover {
  color: #1a2040 !important;
}

/* Such-Icon in der Title-Bar ── */
.title-bar .top-bar-search-icon,
.top-bar-search-icon {
  color: #293262 !important;
}

/* ── Mobile / Tablet Top-Bar Hintergrund ── */
@media screen and (min-width: 0em) and (max-width: 39.9375em) {
  .top-bar {
    background-color: rgba(255, 255, 255, 0.97) !important;
  }
}
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
  .top-bar {
    background-color: rgba(255, 255, 255, 0.97) !important;
  }
}

/* ── Allgemeine Menü-Links in der Top-Bar ── */
.top-bar .menu .home a {
  color: #293262 !important;
  font-weight: 700;
}
.top-bar .menu a {
  color: #293262 !important;
  font-weight: 700 !important;
}
.top-bar .menu a:hover:not(.button) {
  color: #1a2040 !important;
}

/* Desktop: alle Hintergrundfarben auf Nav-Links + li-Elemente unterdrücken ──
   Hinweis: #site-navigation IST selbst das .top-bar Element, daher kein .top-bar im Selektor */
@media screen and (min-width: 64em) {
  #site-navigation .menu li,
  #site-navigation .menu li:hover,
  #site-navigation .menu li.is-active,
  #site-navigation .menu li.current-menu-item,
  #site-navigation .menu li.current-menu-ancestor {
    background: transparent !important;
    background-color: transparent !important;
  }
  #site-navigation .menu li > a,
  #site-navigation .menu li > a:hover,
  #site-navigation .menu li > a:focus,
  #site-navigation .menu li.is-active > a,
  #site-navigation .menu li.current-menu-item > a,
  #site-navigation .menu li.current-menu-ancestor > a {
    background: transparent !important;
    background-color: transparent !important;
  }
}

/* Trennlinien zwischen Menüpunkten ── */
@media screen and (min-width: 40em) {
  .top-bar .menu li:not(:last-child) {
    border-right-color: #d0d4e8 !important;
  }
}

/* ── Allgemeines Dropdown-Submenü ── */
.top-bar .dropdown.menu .submenu {
  background-color: #ffffff !important;
  color: #293262 !important;
  border: 1px solid #d0d4e8 !important;
}

/* ── Rechtes Navigationsmenü (Desktop): Links ── */
.top-bar .topbar-container .top-bar-right .menu li:not(.is-submenu-item) a {
  color: #293262 !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

/* Mobile/Tablet Hover ── */
@media screen and (max-width: 63.9375em) {
  .top-bar .topbar-container .top-bar-right .menu li:not(.is-submenu-item) a:hover:not(.button) {
    background-color: #eef0fb !important;
    color: #1a2040 !important;
  }
}

/* Desktop Hover + aktiver Unterstrich via ::before ── */
@media screen and (min-width: 64em) {
  /* Position: relative damit ::before absolut positioniert werden kann */
  .top-bar .topbar-container .top-bar-right .menu li:not(.is-submenu-item) > a {
    position: relative;
    overflow: visible;
  }

  /* Basis-Unterstrich (unsichtbar) für alle Links ── */
  .top-bar .topbar-container .top-bar-right .menu li:not(.is-submenu-item) > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #00a285;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Hover: Unterstrich fährt von links ein ── */
  .top-bar .topbar-container .top-bar-right .menu li:not(.is-submenu-item) > a:hover:not(.button)::before {
    transform: scaleX(1);
  }

  .top-bar .topbar-container .top-bar-right .menu li:not(.is-submenu-item) a:hover:not(.button),
  .top-bar .topbar-container .top-bar-right .menu li:not(.is-submenu-item) a:focus:not(.button) {
    background-color: transparent !important;
    color: #1a2040 !important;
  }

  /* Aktive Seite: Unterstrich animiert beim Laden von links nach rechts ── */
  .top-bar .topbar-container .top-bar-right .menu li.current-menu-item:not(.is-submenu-item) > a::before,
  .top-bar .topbar-container .top-bar-right .menu li.current-menu-ancestor:not(.is-submenu-item) > a::before {
    animation: nav-underline-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
  }
}

@keyframes nav-underline-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Dropdown-Pfeil für reguläre Menüpunkte ── */
.top-bar .topbar-container .top-bar-right .menu li:not(.is-submenu-item) a::after {
  border-color: #293262 transparent transparent !important;
}

/* Dropdown-Submenü der rechten Navigation: weißer Hintergrund */
.top-bar .topbar-container .top-bar-right .dropdown.menu .submenu {
  background-color: #ffffff !important;
  border: 1px solid #d0d4e8 !important;
  box-shadow: 0 4px 16px rgba(41, 50, 98, 0.12);
}

/* ── Dropdown Menu-Items ── */
.dropdown .menu-item {
  color: #293262 !important;
}
.dropdown .menu-item > a {
  color: #293262 !important;
}

/* Dropdown-Pfeil-Triangle: blau ── */
.dropdown .menu-item > a::after {
  border-color: #293262 transparent transparent !important;
}

/* Submenu-Links (Standard-Zustand) ── */
.dropdown .menu-item .is-dropdown-submenu a {
  color: #293262 !important;
}

/* ── Neues Logo (SVG, farbig) ── */
#home-logo a {
  color: #293262 !important;
}

/* Desktop: Neues SVG-Logo */
#home-logo a #home-logo-image {
  /* PNG-Fallback für Browser ohne SVG-Unterstützung */
  background-image: url(../images/Logo_Header.png) !important;
  /* SVG bevorzugt (überschreibt PNG-Zeile in modernen Browsern) */
  background-image: url(../images/Logo_Header.svg) !important;
  background-position: left center !important;
}

/* Tablet + Smartphone: mobiles Logo ab ≤63.9375em (~1024px) */
@media screen and (max-width: 63.9375em) {
  #home-logo a #home-logo-image {
    background-image: url(../images/Logo_Header_Mobile.png) !important;
    background-image: url(../images/Logo_Header_Mobile.svg) !important;
    background-position: left center !important;
  }
}

/* ── Nav ist jetzt in-flow (position: relative), nicht mehr fixed ──
   Der margin-top: 7.25rem auf .container war nur für die alte fixe Nav nötig.
   Hier global zurücksetzen, damit keine überflüssige Lücke entsteht. */
body:not(.home) .container {
  margin-top: 0 !important;
}

