:root {
  --cassiopeia-color-primary: #102f52;
  --cassiopeia-color-link: #174f85;
  --cassiopeia-color-hover: #b57b32;
  --cassiopeia-color-focus: #174f85;
}

body {
  color: #213244;
  background: #f6f8fb;
  line-height: 1.65;
}

.container-header {
  background: linear-gradient(118deg, #0d2949 0%, #173f69 58%, #295c8a 100%);
  box-shadow: 0 4px 18px rgba(11, 37, 65, .18);
}

.container-header .grid-child {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.container-header .mod-menu {
  gap: .25rem;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > button {
  border-radius: .35rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .7rem .9rem;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li.active > a {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  text-decoration: none;
}

h1, h2, h3 {
  color: #102f52;
  font-weight: 700;
  letter-spacing: -.015em;
}

main {
  max-width: 1200px;
  margin: 2rem auto 3rem;
}

.com-content-category__table,
.blog-featured .item,
.com-content-article {
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: .6rem;
  box-shadow: 0 5px 18px rgba(16, 47, 82, .06);
}

.blog-featured .item,
.com-content-article {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

a {
  text-underline-offset: .16em;
}

.btn-primary {
  background-color: #174f85;
  border-color: #174f85;
  border-radius: .35rem;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #102f52;
  border-color: #102f52;
}

.footer {
  background: #102f52;
  color: #fff;
}

.footer a {
  color: #fff;
}


@media (max-width: 576px) {
  body {
    overflow-x: hidden;
  }

  .container-header .grid-child {
    padding: .75rem 1rem;
  }

  .navbar-brand .brand-logo {
    display: block;
    font-size: clamp(1.5rem, 8vw, 2rem);
    line-height: 1.1;
    white-space: normal;
  }

  .navbar-brand .brand-logo span {
    display: block;
  }

  .site-description {
    font-size: .9rem;
    line-height: 1.35;
  }

  .container-header .container-nav {
    padding-top: 0;
  }
}


.dob-intro {
  background: linear-gradient(125deg, #102f52 0%, #1f5a91 100%);
  border-radius: .75rem;
  box-shadow: 0 10px 28px rgba(16, 47, 82, .18);
  color: #fff;
  margin: 0 0 2rem;
  padding: 2.5rem 2.25rem;
}

.dob-intro .eyebrow {
  color: #d8e8f7;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 .5rem;
  text-transform: uppercase;
}

.dob-intro h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.dob-intro p:last-child {
  margin-bottom: 0;
}

.dob-intro .btn {
  background: #fff;
  border-color: #fff;
  color: #102f52;
  font-weight: 700;
  margin-top: .5rem;
}

.dob-intro .btn:hover,
.dob-intro .btn:focus {
  background: #dce9f5;
  border-color: #dce9f5;
  color: #102f52;
}

@media (max-width: 576px) {
  .dob-intro {
    border-radius: .5rem;
    padding: 1.75rem 1.25rem;
  }
}


/* Stiftungslogo über die gesamte Headerbreite */
.container-header > .grid-child:first-child {
  max-width: none;
  padding: 0;
}

.container-header .navbar-brand,
.container-header .brand-logo {
  display: block;
  width: 100%;
}

.container-header .brand-logo img {
  display: block;
  height: auto;
  max-width: none;
  width: 100%;
}

.container-header .site-description {
  padding: .45rem max(1rem, calc((100% - 1200px) / 2));
}

@media (max-width: 576px) {
  .container-header .site-description {
    padding: .4rem 1rem;
  }
}


/* Kompatibilität für historische Joomla-Inhalte */
.com-content-article :is(img, video, iframe) {
  height: auto;
  max-width: 100%;
}

.com-content-article table {
  border-collapse: collapse;
  float: none !important;
  height: auto !important;
  margin: 1.25rem auto;
  max-width: 100% !important;
  table-layout: auto;
  width: 100% !important;
}

.com-content-article td,
.com-content-article th {
  height: auto !important;
  max-width: 100%;
  padding: .5rem;
  vertical-align: top;
  width: auto !important;
}

.com-content-article td:empty {
  display: none;
}

.com-content-article img[style*="float"] {
  float: none !important;
  margin: .5rem 0;
}

@media (max-width: 700px) {
  .com-content-article table,
  .com-content-article tbody,
  .com-content-article tr,
  .com-content-article td,
  .com-content-article th {
    display: block;
    width: 100% !important;
  }

  .com-content-article tr {
    border-bottom: 1px solid #dce5ef;
    padding: .5rem 0;
  }

  .com-content-article tr:last-child {
    border-bottom: 0;
  }

  .com-content-article td,
  .com-content-article th {
    padding: .4rem 0;
  }
}


/* Wiederverwendbare Darstellung für Präsidium, Beirat und Gremien */
.dob-people {
  display: grid;
  gap: 1.25rem;
  margin: 1rem 0;
}

.dob-person {
  align-items: start;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: .75rem;
  box-shadow: 0 4px 14px rgba(16, 47, 82, .08);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(120px, 180px) 1fr;
  padding: 1.25rem;
}

.dob-person__photo {
  border-radius: .5rem;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.dob-person > div:only-child {
  grid-column: 1 / -1;
}

.dob-person h2 {
  color: #174f85;
  font-size: 1.3rem;
  margin: 0 0 .45rem;
}

.dob-person p {
  margin: .25rem 0;
}

.dob-person__role {
  color: #43566a;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .dob-person {
    grid-template-columns: 1fr;
  }

  .dob-person__photo {
    max-width: 180px;
  }
}


/* Headerbild scrollt mit dem Inhalt; keine großflächig haftende Kopfzeile */
.container-header.position-sticky,
.container-header.sticky-top {
  position: static !important;
  top: auto !important;
}
