@import url('/custom/assets/fonts/fonts.css');

/* ═══════════════════════════════════════════
   Design tokens
   ═══════════════════════════════════════════ */
:root {
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;

  --c-primary: #21409A;
  --c-primary-700: #182F75;
  --c-primary-100: #E6ECFB;
  --c-accent: #FFB81C;
  --c-accent-700: #E09A00;

  --c-ink: #18203A;
  --c-text: #2E3550;
  --c-muted: #5C6482;
  --c-bg: #FBF8F1;
  --c-surface: #FFFFFF;
  --c-line: #E4DFD0;
  --c-header: var(--c-primary);
  --c-footer: #E6ECFB;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(24, 32, 58, .06), 0 2px 8px rgba(24, 32, 58, .05);
  --shadow-md: 0 10px 30px rgba(33, 64, 154, .14);
  --t: .2s ease;
  --nav-height: 72px;
}

/* ═══════════════════════════════════════════
   Base
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin-top: 0;
}

a { color: var(--c-primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-primary-700); }
img { max-width: 100%; height: auto; display: block; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--c-primary); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.inner-wrapper { padding: 1.25rem 0 0; }

/* ═══════════════════════════════════════════
   Header / main menu
   ═══════════════════════════════════════════ */
.mainMenuWrapper,
.outer-mainmenu-container,
.site-header {
  background-color: var(--c-header);
}

.mainMenuWrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--c-accent);
  box-shadow: 0 6px 18px rgba(24, 32, 58, .06);
}

.site-header .navbar { padding: .55rem 0; min-height: var(--nav-height); }

.logo-wrapper { display: inline-flex; align-items: center; transition: transform var(--t); }
.logo-wrapper:hover { transform: rotate(-1.5deg) scale(1.03); }
.logo-wrapper img.logo { height: 50px; width: auto; border-radius: 6px; }

.navbar-nav { gap: .25rem; }

.navbar-nav .nav-link {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  padding: .45rem .85rem;
  border-radius: 999px;
  transition: background var(--t), color var(--t);
}
.navbar-nav .nav-link:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.navbar-nav .nav-link.active { background: #fff; color: var(--c-primary); }

.navbar-nav .nav-link--cta {
  background: var(--c-accent);
  color: var(--c-ink);
  box-shadow: 0 2px 0 var(--c-accent-700);
}
.navbar-nav .nav-link--cta:hover { background: #FFC945; color: var(--c-ink); }
.navbar-nav .nav-link--cta.active { background: #fff; color: var(--c-primary); box-shadow: none; }

.navbar-toggler { border: 2px solid #fff; border-radius: var(--radius-sm); padding: .35rem .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--c-accent); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media (max-width: 991.98px) {
  .navbar-collapse { padding: .75rem 0 .5rem; border-top: 1px solid rgba(255, 255, 255, .25); margin-top: .5rem; }
  .navbar-nav { gap: .15rem; }
  .navbar-nav .nav-link { border-radius: var(--radius-sm); padding: .6rem .85rem; }
}

/* ═══════════════════════════════════════════
   Breadcrumb
   ═══════════════════════════════════════════ */
.breadcrumb-wrapper { padding: 1rem 0 0; }
.breadcrumb { margin: 0; padding: 0; background: transparent; font-size: .85rem; --bs-breadcrumb-divider-color: var(--c-muted); }
.breadcrumb-item a { color: var(--c-muted); }
.breadcrumb-item a:hover { color: var(--c-primary); }
.breadcrumb-item.active { color: var(--c-ink); font-weight: 600; }

/* ═══════════════════════════════════════════
   Home: hero
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  margin: 1rem 0 3rem;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  background: var(--c-bg);
  border-radius: 50%;
  z-index: -1;
}
.hero::before { left: -14px; }
.hero::after { right: -14px; }

.hero__bg { display: none; }

.hero__text { max-width: 46rem; }
.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .25rem .8rem;
  background: var(--c-accent);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero__body { font-size: 1.12rem; color: rgba(255, 255, 255, .92); line-height: 1.65; }
.hero__body p { margin-bottom: .5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn-primary-cta,
.btn-ghost,
.btn-newsletter {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
}
.btn-primary-cta { background: var(--c-accent); color: var(--c-ink); box-shadow: 0 3px 0 var(--c-accent-700); }
.btn-primary-cta:hover { background: #FFC945; color: var(--c-ink); transform: translateY(-2px); }
.btn-ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: #fff; color: var(--c-primary); border-color: #fff; }

.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 2rem 0 0; }
.hero__chips a {
  display: inline-block;
  padding: .35rem .9rem;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
}
.hero__chips a:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ═══════════════════════════════════════════
   Category head
   ═══════════════════════════════════════════ */
.category-head {
  margin: 1rem 0 2rem;
  padding: 1.75rem 2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line); border-left: 6px solid var(--c-primary);
  border-radius: var(--radius);
}
.category-head__label {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.category-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .6rem; }
.category-head__intro { font-size: 1.1rem; color: var(--c-muted); max-width: 44rem; }
.category-head__intro p { margin: 0; }

/* ═══════════════════════════════════════════
   Article lists / cards
   ═══════════════════════════════════════════ */
.article-list { margin-bottom: 3.25rem; }
.article-list .row { row-gap: 1.5rem; }

.article-list__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--c-line);
}
.article-list__head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 .15rem; }
.article-list__head h2 a { color: var(--c-ink); }
.article-list__head h2 a:hover { color: var(--c-primary); }
.article-list__head p { margin: 0; color: var(--c-muted); font-size: .95rem; max-width: 40rem; }
.article-list__more {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .article-list__head { flex-direction: column; align-items: flex-start; }
}

.article-item {
  height: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.article-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary); }
.article-item > a { display: flex; flex-direction: column; height: 100%; color: inherit; }

.article-item .image {
  aspect-ratio: 660 / 412;
  background: var(--c-primary-100);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
.article-item .image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-item:hover .image img { transform: scale(1.05); }

.article-item__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.25rem; }
.article-item .date {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-muted); margin-bottom: .35rem;
}
.article-item__title { font-size: 1.15rem; font-weight: 700; line-height: 1.28; margin: 0 0 .5rem; color: var(--c-ink); transition: color var(--t); }
.article-item:hover .article-item__title { color: var(--c-primary); }
.article-item .excerpt { font-size: .93rem; line-height: 1.55; color: var(--c-muted); margin: 0 0 1rem; }
.article-item__cta {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--c-primary);
}

/* ═══════════════════════════════════════════
   Article detail
   ═══════════════════════════════════════════ */
.article-detail { margin-top: 1rem; }
.article-detail__tag {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .25rem .8rem;
  background: var(--c-accent);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.article-detail__tag:hover { background: #FFC945; color: var(--c-ink); }
.article-detail h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; margin-bottom: .75rem; }
.article-detail__meta { font-size: .9rem; color: var(--c-muted); margin-bottom: 1.5rem; }
.article-detail__meta .sep { margin: 0 .35rem; }
.article-detail__meta .modified-date { font-size: .8rem; margin-left: .25rem; }

.article-detail .image { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-detail .image img { width: 100%; max-height: 500px; object-fit: cover; }

.content { font-size: 1.08rem; line-height: 1.85; }
.content h2 { font-size: 1.65rem; font-weight: 700; margin: 2.5rem 0 .8rem; }
.content h3 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .6rem; }
.content p { margin-bottom: 1.3rem; }
.content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.content ul, .content ol { padding-left: 1.4rem; margin-bottom: 1.3rem; }
.content li { margin-bottom: .45rem; }
.content img { margin: 1.5rem auto; border-radius: var(--radius-sm); }
.content blockquote {
  margin: 1.75rem 0; padding: 1rem 1.5rem;
  background: var(--c-primary-100); border-left: 4px solid var(--c-primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.related-articles { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--c-line); }
.related-articles__title { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.25rem; }
.related-articles .article-list { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   Plain pages (Impressum, Newsletter, …)
   ═══════════════════════════════════════════ */
.page-content {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 2.5rem 2.75rem;
  margin-top: 1rem;
  line-height: 1.8;
}
.page-content h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 1.5rem; }
.page-content h2 { font-size: 1.45rem; margin: 2.2rem 0 .6rem; }
.page-content h3 { font-size: 1.15rem; margin: 1.5rem 0 .4rem; }
.page-content p { margin-bottom: 1.15rem; }
.page-content a { text-decoration: underline; text-underline-offset: 3px; }
.page-content ul, .page-content ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.page-content iframe { width: 100%; border: 0; border-radius: var(--radius-sm); }
@media (max-width: 767.98px) { .page-content { padding: 1.5rem 1.25rem; } }

/* ═══════════════════════════════════════════
   Sidebar
   ═══════════════════════════════════════════ */
.sidebar { position: sticky; top: calc(var(--nav-height) + 1.25rem); margin: 1rem 0 1.5rem; }
@media (max-width: 991.98px) { .sidebar { position: static; margin-top: 2.5rem; } }

.sidebar-box {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-label {
  display: block;
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.sidebar-newsletter { background: var(--c-primary); color: #fff; border: 1px solid var(--c-primary); }
.sidebar-newsletter .sidebar-label { color: var(--c-accent); }
.sidebar-title { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: .6rem; }
.fi-newsletter-cta__text { font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .9); margin-bottom: 1.1rem; }
.btn-newsletter { background: var(--c-accent); color: var(--c-ink); box-shadow: 0 3px 0 var(--c-accent-700); }
.btn-newsletter:hover { background: #FFC945; color: var(--c-ink); transform: translateY(-2px); }

.sidebar-categories ul { list-style: none; margin: 0; padding: 0; }
.sidebar-categories li { border-bottom: 1px solid var(--c-line); }
.sidebar-categories li:last-child { border-bottom: 0; }
.sidebar-categories a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .65rem 0;
  font-weight: 600; font-size: .98rem; color: var(--c-ink);
}
.sidebar-categories a:hover { color: var(--c-primary); }
.cat-arrow { color: var(--c-primary); transition: transform var(--t); }
.sidebar-categories a:hover .cat-arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════════
   Pagination
   ═══════════════════════════════════════════ */
.pagination { gap: .35rem; margin-top: 2.25rem; }
.pagination .page-link {
  min-width: 2.6rem; text-align: center;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-display);
  font-weight: 600;
  padding: .5rem .8rem;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.pagination .page-link:hover { background: var(--c-primary-100); color: var(--c-primary-700); border-color: var(--c-primary); }
.pagination .page-item.active .page-link { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination .page-item.disabled .page-link { background: transparent; color: #A7ABBD; border-color: var(--c-line); }

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.site-footer {
  margin-top: 4.5rem;
  padding: 2.5rem 0 2.25rem;
  background: var(--c-footer);
  border-top: 1px solid rgba(33, 64, 154, .2);
  color: var(--c-text);
}
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-logo img { height: 40px; width: auto; border-radius: 6px; }
.footer-copy { margin: 0; font-size: .9rem; color: var(--c-muted); }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; }
.footer-nav a { font-size: .92rem; font-weight: 600; color: var(--c-primary); }
.footer-nav a:hover { color: var(--c-primary-700); text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════════════════════════════════
   Cookie icon / 404
   ═══════════════════════════════════════════ */
.cookieicon {
  width: 44px; height: 44px;
  background-color: var(--c-primary);
  cursor: pointer;
  position: fixed; left: 12px; bottom: 12px; z-index: 90;
  mask-image: url(/themes/base/assets/cookie.png);
  -webkit-mask-image: url(/themes/base/assets/cookie.png);
  mask-size: contain; -webkit-mask-size: contain;
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
