/* 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;
}
/* 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;
    }
}
