:root {
  --color-primary: #1643D5;
  --color-navy: #002059;
  --color-navy-dark: #000E26;
  --color-text: #535862;
  --color-heading: #000E26;
  --color-border: #E9EAEB;
  --color-hero-bg: #E5F1FF;
  --color-accent: #FFE481;
  --section-width: 1260px;
  --section-padding: 20px;
  --listing-overlap: 96px;
  --alphabet-gap: 24px;
  --entry-measure: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text);
  background: #fff;
}

a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 { font-size: 60px; }
h2 { font-size: 48px; }
h3 { font-family: "Source Serif 4", serif; font-size: 22px; }
h4 { font-family: "Source Serif 4", serif; font-size: 30px; }
h5 { font-family: "Source Serif 4", serif; font-size: 18px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section-container {
  max-width: var(--section-width);
  margin: 0 auto;
  padding-left: var(--section-padding);
  padding-right: var(--section-padding);
}

/* Header shell */
.site-header-shell {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  overflow: visible;
}

.topbar-band {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 36px;
  background: #F5F6F8;
  border-bottom: 1px solid var(--color-border);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  z-index: 0;
}

.topbar-list {
  grid-column: 3 / -1;
  grid-row: 1;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px 24px;
  font-size: 14px;
}

.topbar-list a {
  color: var(--color-navy-dark);
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-list a:hover { color: var(--color-primary); }

.topbar-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar-icon svg { display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  overflow: visible;
}

.site-logo {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 12px 0;
  background: #fff;
}

.site-logo__full,
.site-logo__mark {
  height: 40px;
  width: auto;
  max-width: 177px;
}

.site-logo__full { display: block; }
.site-logo__mark { display: none; }

.site-nav {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding: 12px 0;
  z-index: 4;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: visible;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy-dark);
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before { top: -7px; }
.nav-toggle-lines::after { top: 7px; }

.nav-item {
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-link {
  border: 0;
  background: transparent;
  color: var(--color-navy-dark);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  width: max-content;
  min-width: max-content;
  word-break: keep-all;
  overflow-wrap: normal;
}

.nav-link:hover { color: var(--color-primary); }

.nav-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 14, 38, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.nav-item.is-open > .nav-dropdown,
.nav-item.has-dropdown:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--color-navy-dark);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: #f5f7fb;
  color: var(--color-primary);
  text-decoration: none;
}

.header-right {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-self: end;
  position: relative;
  z-index: 3;
  background: #fff;
  padding: 12px 0;
}

.header-search-form {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  min-width: 0;
  background: #fff;
}

.header-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: #fff;
}

.header-cta {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 8px;
  white-space: nowrap;
  background: var(--color-navy);
}

.header-cta svg {
  display: block;
  flex-shrink: 0;
}

.search-form--header .search-form__container {
  flex-direction: row;
  align-items: center;
  width: 220px;
  max-width: 100%;
  height: 44px;
  padding: 0 6px 0 4px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}

.search-form--header .search-form__container:focus-within {
  border-color: #1643D5;
  box-shadow: 0 0 0 1px #1643D5;
}

.search-form--header .search-form__button--search {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 50%;
  flex-shrink: 0;
}

.search-form--header .search-form__button--search:hover {
  background: #f5f7fb;
}

.search-form--header .search-form__field {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-navy-dark);
  border-radius: 999px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.search-form--header .search-form__field:focus {
  outline: none;
}

.search-form--header .search-form__sparkle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.search-form--header .search-form__sparkle svg {
  display: block;
}

.header-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
}

.header-icon-link:hover { background: #f5f7fb; }

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-navy-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
}

.header-cart:hover {
  background: #f5f7fb;
  text-decoration: none;
}

.header-cart__icon {
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3E%3Cpath d='M2.5 2.5H4.16667L6.66667 13.3333H15.8333L17.5 6.66667H5.83333' stroke='%23000E26' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='8.33333' cy='16.6667' r='1.25' fill='%23000E26'/%3E%3Ccircle cx='14.1667' cy='16.6667' r='1.25' fill='%23000E26'/%3E%3C/svg%3E") center/contain no-repeat;
}

.header-cart__count {
  font-size: 12px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: var(--color-navy);
  color: #fff;
  border-radius: 999px;
  padding: 0 5px;
}

/* Breadcrumb */
.breadcrumb-bar {
  padding: 16px 0;
  font-size: 14px;
  color: var(--color-text);
}

.breadcrumb-nav p { margin: 0; }

.breadcrumb-nav a {
  color: var(--color-text);
  font-weight: 400;
  text-decoration: none;
}

.breadcrumb-nav a:hover { color: var(--color-primary); }

.breadcrumb-separator,
.breadcrumb-current {
  color: var(--color-text);
  font-weight: 400;
}

.page-glossary .breadcrumb-bar {
  padding: 12px 0 0;
  font-size: 14px;
}

@media (max-width: 767px) {
  .page-glossary .breadcrumb-bar {
    display: none;
  }
}

.page-glossary .breadcrumb-current {
  color: #000e26;
}

.page-glossary .header-actions,
.page-entry .header-actions {
  display: none;
}

.page-entry .breadcrumb-bar {
  display: none;
}

/* Hero */
.hero-section {
  background-color: var(--color-hero-bg);
  background-image: url('../assets/hero-decoration.svg');
  background-size: 521px auto;
  background-repeat: no-repeat;
  background-position: 100% 0;
  padding: 72px 0 96px;
}

.hero-label {
  font-family: "Source Serif 4", serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  position: relative;
  padding-left: 42px;
}

.hero-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--color-primary);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hero-section h1 { margin-bottom: 24px; }

.hero-subtitle {
  width: 50%;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 25px;
}

.hero-search {
  width: 67%;
  --search-size: 48px;
}

.search-form__container {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.search-form__field {
  flex: 1;
  border: 0;
  padding: 12px 16px;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 18px;
  min-width: 0;
  background: #fff;
  border-radius: 11px 0 0 11px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.search-form__field:focus {
  outline: none;
}

.search-form__container:focus-within {
  border-color: #1643D5;
  box-shadow: 0 0 0 1px #1643D5;
}

.search-form__field::placeholder {
  font-family: inherit;
}

.hero-search .search-form__button {
  width: 40px;
  height: 40px;
}

.search-form__button {
  border: 0;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 0 11px 11px 0;
}

/* Listing overlap */
.listing-section {
  margin-top: calc(-1 * var(--listing-overlap));
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
  background: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  padding: 14px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-accent);
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--color-navy);
  color: var(--color-accent);
  text-decoration: none;
}

.btn-with-arrow::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 12px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='11' viewBox='0 0 12 11' fill='none'%3E%3Cpath d='M6.83333 1L11 5.375M11 5.375L6.83333 9.75M11 5.375L1 5.375' stroke='%23FFE481' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
  font-size: 14px;
  padding: 10px 16px;
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: #fff;
  text-decoration: none;
}

.lexikon-card-link { color: var(--color-primary); }

/* Search results mode */
.search-results-header {
  margin-bottom: 24px;
}

.search-results-header h2 {
  font-size: 24px;
}

.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid #e9eaeb;
  border-radius: 16px;
  background: #fff;
  max-width: 720px;
  margin: 8px auto 24px;
}

.search-empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #e5f1ff;
  margin-bottom: 4px;
}

.search-empty__message {
  margin: 0;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.45;
  color: #000e26;
  max-width: 34em;
}

.search-empty__hint {
  margin: 8px 0 0;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #535862;
}

.search-empty__tips {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #535862;
}

.search-empty__tips li + li {
  margin-top: 4px;
}

/* Single entry page */
.page-entry .entry-hero-band {
  display: none;
}

.page-entry .entry-body-section {
  margin-top: 0;
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
}

.page-entry .lexikon-single-hero {
  position: relative;
  min-height: 0;
  margin-top: 0;
  margin-left: calc(-1 * var(--section-padding));
  margin-right: calc(-1 * var(--section-padding));
  padding: 24px var(--section-padding) 45px;
  background-color: #edf5ff;
  background-image: url("../assets/themen/az-frame-dull.svg");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: min(521px, 45vw) auto;
  overflow: hidden;
}

.page-entry .lexikon-single-breadcrumbs {
  position: relative;
  z-index: 2;
  padding-top: 0;
  margin: 0 0 16px;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #535862;
}

.page-entry .lexikon-single-breadcrumbs a {
  color: #535862;
  font-weight: 400;
  text-decoration: none;
}

.page-entry .lexikon-single-breadcrumbs a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.page-entry .lexikon-single-breadcrumbs .breadcrumb-separator,
.page-entry .lexikon-single-breadcrumbs .breadcrumb-current {
  color: #535862;
  font-weight: 400;
}

.page-entry .lexikon-single-breadcrumbs .breadcrumb-current {
  color: #000E26;
}

.page-entry .lexikon-single-back-link,
.page-entry .lexikon-single-forward-link {
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.page-entry .lexikon-single-back-link:hover,
.page-entry .lexikon-single-forward-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.page-entry .entry-hero-actions {
  position: absolute;
  right: var(--section-padding);
  bottom: 45px;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 0;
}

.page-entry .lexikon-single-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #E9EAEB;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  flex-shrink: 0;
}

.page-entry .lexikon-single-share-btn svg {
  display: block;
  width: 20px;
  height: auto;
  max-height: 20px;
}

.page-entry .lexikon-single-share-btn:hover {
  background: #f5f7fb;
  border-color: #CCD2DE;
}

.page-entry .lexikon-single-share-btn.is-bookmarked svg path,
.lexikon-card-heart.is-bookmarked svg path {
  fill: #e53935;
  stroke: #e53935;
}

.lexikon-card-heart {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.wissen-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  z-index: 2000;
  max-width: min(90vw, 420px);
  padding: 12px 18px;
  border-radius: 999px;
  background: #002059;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wissen-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.page-entry .lexikon-single-nav-top {
  position: static;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0 0 24px;
  pointer-events: auto;
}

.page-entry .lexikon-single-nav-top a {
  pointer-events: auto;
}

.page-entry .lexikon-single-hero-body {
  position: relative;
  z-index: 2;
  max-width: min(820px, calc(100% - 220px));
  padding-bottom: 8px;
}

.page-entry .lexikon-single-back-link {
  margin-bottom: 0;
}

.page-entry .lexikon-single-title {
  max-width: min(var(--entry-measure), 100%);
  font-size: 48px;
  margin: 0 0 16px;
  color: #000E26;
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  line-height: 1.1;
}

.page-entry .lexikon-single-intro {
  max-width: min(var(--entry-measure), 100%);
  margin: 0;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #50576B;
}

.page-entry #verwandte-begriffe {
  scroll-margin-top: 120px;
}

#page-heading {
  scroll-margin-top: 120px;
}

.page-entry .lexikon-single-layout {
  display: block;
  margin-left: calc(-1 * var(--section-padding));
  margin-right: calc(-1 * var(--section-padding));
  padding: 24px var(--section-padding) 0;
  background: #fff;
  position: relative;
}

.page-entry .lexikon-single-toc {
  display: none !important;
}

.page-entry .lexikon-single-content {
  max-width: min(var(--entry-measure), 100%);
}

.page-entry .lexikon-single-content .h3,
.page-entry .lexikon-single-content h3 {
  font-family: "Source Serif 4", serif;
  font-size: 22px;
  font-weight: 600;
  margin: 16px 0 16px;
  color: #000E26;
  scroll-margin-top: 120px;
}

.page-entry .lexikon-single-content p {
  margin: 0 0 16px;
  line-height: 1.6;
  color: #535862;
}

.page-entry .lexikon-single-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
  color: #535862;
}

.page-entry .lexikon-single-content li {
  margin: 0 0 8px;
  line-height: 1.6;
}

.page-entry .lexikon-single-content strong {
  font-weight: 600;
  color: #000E26;
}

.page-entry .single-actions {
  margin-top: 32px;
}

.page-entry .lexikon-single-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-entry .lexikon-single-nav-link {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 16px;
  background: #fff;
  width: calc(50% - 8px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-entry .lexikon-single-nav-link:hover {
  background: #f5f7fb;
  text-decoration: none;
}

.page-entry .lexikon-single-nav-next {
  text-align: right;
  align-items: flex-end;
}

.page-entry .lexikon-single-nav-link.lexikon-single-nav-prev,
.page-entry .lexikon-single-nav-link.lexikon-single-nav-next {
  flex-direction: column;
}

.page-entry .lexikon-single-nav-label {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-entry .lexikon-single-nav-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 7px;
}

.page-entry .lexikon-related-section {
  padding: 48px 0 80px;
  background: #fff;
}

.page-entry .lexikon-related-heading {
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 24px;
  color: #000E26;
}

.page-entry .lexikon-related-heading-primary {
  font-family: "Source Serif Pro", serif;
}

.page-entry .lexikon-related-heading-secondary {
  font-family: "Source Serif Pro", serif;
  font-style: italic;
  color: var(--color-primary);
}

.page-entry .lexikon-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.page-entry .lexikon-related-item {
  border-radius: 12px;
  border: 1px solid #e9eaeb;
  background: #fff;
  transition: box-shadow 0.15s ease;
  height: 100%;
}

.page-entry .lexikon-related-item:hover {
  box-shadow: 0 4px 16px rgba(0, 14, 38, 0.06);
}

.page-entry .lexikon-related-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  text-decoration: none;
  color: inherit;
}

.page-entry .lexikon-related-item-title {
  font-family: "Source Serif 4", serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #000e26;
  line-height: 1.3;
}

.page-entry .lexikon-related-item-excerpt {
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #535862;
  margin: 0 0 16px;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-entry .lexikon-related-read-more {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
}

.page-entry .lexikon-related-read-more svg {
  display: block;
  transition: transform 0.15s ease-out;
}

.page-entry .lexikon-related-item:hover .lexikon-related-read-more svg {
  transform: translateX(2px);
}

/* WhatsApp side tab (fixed middle-right) */
.whatsapp-float {
  position: fixed;
  top: calc(50% + 175px);
  right: 5px;
  transform: translateY(-50%);
  z-index: 999;
  display: block;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.whatsapp-float img {
  display: block;
  width: 57px;
  height: 48px;
}

.whatsapp-float:hover {
  transform: translateY(-50%) scale(1.05);
  opacity: 0.95;
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: #fff;
  color: #50576B;
  padding: 24px 0;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
}

.footer-container-1340 {
  max-width: 1340px;
}

.footer-card {
  position: relative;
  width: 100%;
  padding: 70px 40px 24px;
  border: 1px solid #E5E9EE;
  border-radius: 12px;
  background-color: #F7F8F9;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.footer-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/footer-bg.svg");
  background-repeat: no-repeat;
  background-position: right top;
  pointer-events: none;
}

.footer-card > :not(.footer-card-bg) {
  position: relative;
  z-index: 1;
}

.footer-newsletter-block {
  width: 100%;
}

.footer-newsletter-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-newsletter-heading h4 {
  color: #000E26;
  font-family: "Source Serif Pro", serif;
  font-size: 30px;
  font-weight: 600;
  margin: 0;
  flex-shrink: 0;
}

.footer-newsletter-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #CCD2DE;
  min-width: 0;
}

.footer-newsletter-form-wrap {
  max-width: 650px;
  width: 100%;
}

.newsletter-footer {
  position: relative;
}

.newsletter-form-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.newsletter-footer .newsletter-field--email {
  flex: 1;
  min-width: 0;
}

.newsletter-footer .newsletter-field--email input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #E5E9EE;
  border-radius: 8px;
  font-family: "Source Sans Pro", "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000E26;
  background: #fff;
}

.newsletter-footer .newsletter-field--email input::placeholder {
  color: #535862;
  font-weight: 400;
  opacity: 1;
}

.newsletter-footer .newsletter-field--email input:focus {
  outline: 2px solid #1643D5;
  outline-offset: 1px;
}

.btn-newsletter {
  background: #002059;
  color: #FFE481;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: stretch;
}

.btn-newsletter:hover {
  background: #002059;
  color: #FFE481;
}

.newsletter-checkbox {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
}

.newsletter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid #CCD2DE;
  accent-color: #002059;
  cursor: pointer;
}

.newsletter-checkbox label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #50576B;
}

.newsletter-checkbox a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.newsletter-checkbox a:hover {
  text-decoration: underline;
}

.newsletter-form-message {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.newsletter-form-message.is-success {
  color: #0f6b3a;
}

.newsletter-form-message.is-error {
  color: #b42318;
}

.footer-divider {
  border: 0;
  border-top: 1px solid #CCD2DE;
  margin: 24px 0 0;
  width: 100%;
}

.footer-divider--bottom {
  margin-top: 80px;
}

.site-footer h5 {
  color: #000E26;
  font-family: "Source Serif Pro", serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}

.site-footer a {
  color: #50576B;
  font-weight: 400;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.footer-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-columns li {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #50576B;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
  margin-top: 1px;
}

.footer-contact-icon svg {
  display: block;
}

.footer-cta {
  margin-top: 16px;
  font-size: 14px;
  padding: 10px 16px;
}

.footer-bottom {
  border-top: none;
  padding-top: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
  font-size: 12px;
  color: #717680;
}

.footer-logo-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.footer-logo-link img {
  display: block;
  width: 120px;
  height: auto;
}

.footer-bottom-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.footer-bottom-menu a {
  color: #717680;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-decoration: none;
}

.footer-bottom-menu a:hover {
  color: var(--color-primary);
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.footer-search-form {
  width: min(100%, 320px);
}

.footer-search-form .search-form__container {
  min-height: 44px;
  border-color: #E9EAEB;
  border-radius: 12px;
  background: #fff;
}

.footer-search-form .search-form__field {
  height: 44px;
  font-size: 14px;
  color: #535862;
}

.footer-search-form .search-form__button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
}

.footer-copyright {
  margin: 0;
  color: #717680;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.footer-social-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.footer-social-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
  text-decoration: none;
}

.header-cart__subtotal { display: none; }

/* Responsive */
@media (max-width: 1319px) {
  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 14, 38, 0.1);
    min-width: 240px;
    z-index: 220;
  }

  .nav-list.is-open { display: flex; }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding-left: 12px;
    display: none;
  }

  .nav-item.is-open > .nav-dropdown { display: block; }

  .site-nav {
    margin-left: auto;
    overflow: visible;
  }
}

@media (max-width: 1023px) {
  .hero-subtitle { width: 100%; }
  .hero-search { width: 100%; }
  .search-form--header .search-form__container { width: 220px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .footer-newsletter-form-wrap { max-width: 500px; }
  .page-entry .lexikon-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-entry .lexikon-single-title { font-size: 36px; }
}

@media (max-width: 767px) {
  h1 { font-size: 36px; }

  .site-logo__full { display: none; }

  .site-logo__mark {
    display: block;
    height: 40px;
    width: auto;
  }

  .site-header-shell {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "logo . search nav";
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar-band,
  .topbar-list {
    display: none;
  }

  .site-logo {
    grid-area: logo;
    padding: 0;
  }

  .site-nav {
    grid-area: nav;
    margin-left: 0;
    padding: 0;
  }

  .header-right {
    display: contents;
  }

  .header-search-form {
    grid-area: search;
    padding: 0;
    justify-self: end;
  }

  .header-actions {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .search-form--header .search-form__container {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .search-form--header .search-form__field,
  .search-form--header .search-form__sparkle {
    display: none;
  }

  .search-form--header .search-form__button--search {
    width: 44px;
    height: 44px;
  }

  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 14, 38, 0.1);
    min-width: 240px;
    z-index: 220;
  }

  .nav-list.is-open { display: flex; }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding-left: 12px;
    display: none;
  }

  .nav-item.is-open > .nav-dropdown { display: block; }

  .header-cart__subtotal { display: none; }

  :root { --listing-overlap: 0px; }

  .hero-section {
    padding: 32px 0 0;
    background-size: 280px auto;
    background-position: 100% -20px;
  }

  .page-glossary .hero-section h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .page-glossary .hero-label { margin-bottom: 12px; }

  .page-glossary .hero-subtitle {
    margin-bottom: 16px;
    font-size: 18px;
  }

  .page-glossary .hero-back-link {
    margin-bottom: 16px;
  }

  .listing-section { margin-top: 0; }
  .page-entry .entry-hero-band {
    position: relative;
    height: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    z-index: 1;
  }
  .page-entry .entry-hero-band-inner {
    display: none;
  }
  .page-entry .entry-body-section {
    margin-top: 0;
  }
  .page-entry .lexikon-single-hero {
    position: relative;
    min-height: 0;
    margin-left: calc(-1 * var(--section-padding));
    margin-right: calc(-1 * var(--section-padding));
    padding: 16px var(--section-padding) 29px;
    background-color: #edf5ff;
    background-image: url("../assets/themen/az-frame-dull.svg");
    background-size: min(320px, 55vw) auto;
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-areas:
      "breadcrumbs"
      "body"
      "actions";
    gap: 12px;
    align-items: start;
  }

  .page-entry .lexikon-single-breadcrumbs {
    grid-area: breadcrumbs;
    padding-top: 0;
    font-size: 12px;
    margin-bottom: 0;
    min-width: 0;
  }

  .page-entry .lexikon-single-breadcrumbs p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-entry .lexikon-single-hero-body {
    grid-area: body;
    display: grid;
    grid-template-areas:
      "nav"
      "title"
      "intro";
    gap: 12px;
    max-width: 100%;
    padding-bottom: 0;
  }

  .page-entry .lexikon-single-nav-top {
    position: static;
    grid-area: nav;
    left: auto;
    right: auto;
    width: 100%;
    margin: 0;
    padding-right: 0;
    pointer-events: auto;
  }

  .page-entry .lexikon-single-title {
    grid-area: title;
    font-size: clamp(24px, 6.5vw, 28px);
    line-height: 1.2;
    margin: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .page-entry .lexikon-single-intro {
    grid-area: intro;
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
  }

  .page-entry .entry-hero-actions {
    position: static;
    grid-area: actions;
    right: auto;
    bottom: auto;
    display: flex;
    flex-wrap: nowrap;
    justify-self: end;
    align-self: center;
    margin-bottom: 0;
    flex-shrink: 0;
    gap: 4px;
  }

  .page-entry .lexikon-single-share-btn {
    width: 32px;
    height: 32px;
    padding: 5px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .page-entry .lexikon-single-share-btn svg {
    width: 16px;
    max-height: 16px;
    transform: none;
  }
  .page-entry .lexikon-single-layout {
    padding-top: 16px;
    background: #fff;
  }
  .page-entry .lexikon-single-content .h3,
  .page-entry .lexikon-single-content h3 {
    margin-top: 8px;
  }
  .page-entry .lexikon-single-nav-link { width: 100%; }
  .page-entry .lexikon-related-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-card { padding: 40px 24px 24px; }
  .footer-newsletter-form-wrap { max-width: 100%; }
  .newsletter-form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-newsletter { align-self: auto; }
  .whatsapp-float { right: 5px; }
  .footer-bottom {
    justify-content: center;
    gap: 24px;
  }
  .footer-bottom-actions {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .footer-search-form {
    width: 100%;
  }
  .footer-social-icons {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .footer-bottom-menu {
    justify-content: center;
  }
}
