/* ==========================================================================
   Eugen Jochum Stiftung – Custom Styles (Bootstrap 5)
   ========================================================================== */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src:
    url("../font/opensans/opensans-light-webfont.woff2") format("woff2"),
    url("../font/opensans/opensans-light-webfont.woff") format("woff");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../font/opensans/opensans-regular-webfont.woff2") format("woff2"),
    url("../font/opensans/opensans-regular-webfont.woff") format("woff");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    url("../font/opensans/opensans-semibold-webfont.woff2") format("woff2"),
    url("../font/opensans/opensans-semibold-webfont.woff") format("woff");
}

:root {
  --ejs-blue: #004488;
  --ejs-blue-dark: #003366;
  --ejs-text: #333333;
  --ejs-text-muted: #666666;
  --ejs-bg: #f5f5f5;
  --ejs-surface: #ffffff;
  --ejs-border: #d4d4d4;
  --ejs-breadcrumb: #e7e7e7;
  --ejs-footer-bg: #232323;
  --ejs-footer-end: #0c0c0c;
  --ejs-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
  --ejs-font: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--ejs-font);
  --bs-body-color: var(--ejs-text);
  --bs-body-bg: var(--ejs-bg);
  --bs-link-color: var(--ejs-blue-dark);
  --bs-link-hover-color: #002244;
  --bs-link-color-rgb: 0, 51, 102;
  --bs-primary: var(--ejs-blue);
  --bs-primary-rgb: 0, 68, 136;
  --bs-border-radius: 0.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ejs-blue);
  color: #fff;
}

a {
  color: var(--ejs-blue-dark);
  transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover,
a:focus {
  color: #002244;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  background: #ffffff;
  box-shadow: var(--ejs-shadow);
  z-index: 1030;
}

.site-navbar {
  background: #ffffff;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.site-logo {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--ejs-text) !important;
  letter-spacing: -0.01em;
  margin-right: 0;
}

.site-logo:hover,
.site-logo:focus {
  color: var(--ejs-text) !important;
}

/* Hero -------------------------------------------------------------------- */

.site-hero {
  position: relative;
  box-shadow: var(--ejs-shadow);
}

.hero-home {
  height: 28rem;
}

.hero-subpage {
  height: 18rem;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1;
  max-width: 28rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 0.35rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 0;
  opacity: 0.95;
}

/* Breadcrumb -------------------------------------------------------------- */

.site-breadcrumb {
  background: var(--ejs-breadcrumb);
  font-size: 0.9375rem;
  padding: 0.75rem 0;
}

.site-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider: "›";
  --bs-breadcrumb-item-active-color: #000;
  --bs-breadcrumb-item-padding-x: 0.35rem;
}

.site-breadcrumb .breadcrumb-item a {
  color: #000;
  text-decoration: none;
}

.site-breadcrumb .breadcrumb-item a:hover {
  color: var(--ejs-blue-dark);
}

/* Main content ------------------------------------------------------------ */

.site-main {
  background: var(--ejs-surface);
  font-size: 1.1875rem;
  line-height: 1.7;
}

.page-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 300;
  color: var(--ejs-blue);
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 300;
  color: var(--ejs-text);
  margin-bottom: 0.5rem;
}

.site-main h3,
.section-lead {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 300;
  color: var(--ejs-blue);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.content-subtitle {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 400;
  color: var(--ejs-blue);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.content-subtitle:not(:first-child) {
  margin-top: 1.75rem;
}

.notice-section .page-title {
  margin-bottom: 1rem;
}

.site-main p {
  margin-bottom: 1rem;
}

.site-main ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.site-main li {
  margin-bottom: 0.35rem;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  font-size: 1rem;
  line-height: 1.65;
  color: #dddddd;
  background: var(--ejs-footer-bg) url("../images/footer-background.jpg") no-repeat center;
  background-size: cover;
}

.footer-heading {
  color: #dddddd;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.footer-nav li + li {
  margin-top: 0.35rem;
}

.footer-nav a {
  color: #dddddd;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: #ffffff;
}

.footer-contact a {
  color: #dddddd;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #ffffff;
}

.site-footer address {
  font-style: normal;
}

.site-footer-end {
  font-size: 0.875rem;
  background: var(--ejs-footer-end);
  border-top: 1px solid #292929;
  color: #898989;
}

.site-footer-end a {
  color: #898989;
  text-decoration: none;
}

.site-footer-end a:hover {
  color: #bbbbbb;
}

.scroll-top-btn,
.scroll-top-btn:hover {
  color: #fff;
}

/* Scroll-to-top ----------------------------------------------------------- */

.scroll-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.25rem;
  background: #202020;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top-btn:hover {
  color: #fff;
  opacity: 1;
  transform: translateY(-2px);
}

.scroll-top-btn[hidden] {
  display: none !important;
}

/* Utilities --------------------------------------------------------------- */

.at {
  white-space: nowrap;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .hero-home {
    height: 22rem;
  }

  .hero-subpage {
    height: 16rem;
  }
}

@media (max-width: 575.98px) {
  .hero-home,
  .hero-subpage {
    height: 14rem;
  }

  .hero-caption {
    left: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
  }

  .scroll-top-btn {
    right: 1rem;
    bottom: 1rem;
  }
}
