:root {
  --ink: #0b3c4c;
  --ink-2: #13566a;
  --accent: #8fbd2d;
  --accent-dark: #688f16;
  --blue: #16758d;
  --sky: #eaf5f5;
  --paper: #ffffff;
  --soft: #f5f8f5;
  --line: #dce7e4;
  --text: #263a3f;
  --muted: #677b7f;
  --danger: #b83232;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(11, 60, 76, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.shell, .articles-site .container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(860px, calc(100% - 36px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --------------------------------------------------------------------------
   Header – selwecht Struktur a Navigatioun wéi op der index.php
   -------------------------------------------------------------------------- */
.articles-site {
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-family: inherit, Arial, sans-serif;
}
.articles-site a { color: inherit; }
.bi-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 52, 67, .97);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 4px 18px rgba(5, 35, 45, .12);
  backdrop-filter: blur(12px);
}
.bi-site-header .header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.bi-site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  min-width: max-content;
}
.bi-site-header .brand img {
  width: auto;
  max-width: 265px;
  max-height: 62px;
  object-fit: contain;
}
.brand-symbol {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #12323b;
  font-weight: 900;
  letter-spacing: -.04em;
}
.brand-copy strong, .brand-copy small { display: block; line-height: 1.08; }
.brand-copy strong { font-size: 1rem; }
.brand-copy small { margin-top: 5px; color: #d6e8e8; font-size: .73rem; }
.bi-site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.bi-site-header .main-nav a {
  color: #edf7f5;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
  padding: 10px 11px;
  border-radius: 9px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.bi-site-header .main-nav a:hover,
.bi-site-header .main-nav a.active {
  color: #17323a;
  background: var(--accent);
}
.bi-site-header .main-nav a:hover { transform: translateY(-1px); }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

/* --------------------------------------------------------------------------
   Iwwersiicht
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(143, 189, 45, .40), transparent 25%),
    linear-gradient(125deg, #083543 0%, #0d6073 64%, #487919 140%);
}
.compact-hero { padding: 86px 0 80px; }
.compact-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -130px;
  bottom: -230px;
  border: 52px solid rgba(255,255,255,.07);
  border-radius: 50%;
}
.eyebrow, .section-label {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 900;
}
.page-hero h1 {
  margin: 8px 0 13px;
  max-width: 850px;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.page-hero p { margin: 0; max-width: 700px; color: #e0eeee; font-size: 1.1rem; }
.page-main { padding: 68px 0 92px; }
.list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 31px;
}
.list-toolbar h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.16;
}
.search-form { display: flex; gap: 8px; min-width: min(100%, 390px); }
.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}
.search-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,117,141,.13); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #17323a;
  font-weight: 900;
  text-decoration: none;
  padding: 13px 19px;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(104, 143, 22, .20);
  transition: transform .18s ease, background-color .18s ease;
}
.button:hover { background: #a1cc42; transform: translateY(-1px); }
.button-small { padding: 10px 15px; }
.button-outline { background: transparent; border: 1px solid var(--ink); box-shadow: none; color: var(--ink); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 25px; }
.article-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 9px 28px rgba(11,60,76,.07);
  transition: transform .22s ease, box-shadow .22s ease;
}
.article-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-card:hover::after { transform: scaleX(1); }
.card-image { display: block; height: 225px; overflow: hidden; background: var(--ink); text-decoration: none; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .36s ease; }
.article-card:hover .card-image img { transform: scale(1.04); }
.image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 72% 22%, rgba(143,189,45,.42), transparent 25%),
    linear-gradient(135deg, var(--ink), var(--ink-2));
  color: #fff;
}
.image-placeholder b { font-size: 3rem; color: var(--accent); line-height: 1; }
.image-placeholder small { margin-top: 10px; text-transform: uppercase; letter-spacing: .16em; }
.card-content { padding: 23px 23px 26px; }
.article-meta { color: var(--blue); font-size: .77rem; font-weight: 850; text-transform: uppercase; letter-spacing: .085em; }
.card-content h3 { margin: 8px 0 10px; color: var(--ink); font-size: 1.34rem; line-height: 1.26; }
.card-content h3 a { text-decoration: none; }
.card-content p { margin: 0 0 18px; color: var(--muted); }
.read-more { color: var(--ink); font-weight: 900; text-decoration: none; }
.read-more span { color: var(--accent-dark); }
.pagination { margin-top: 43px; display: flex; justify-content: center; gap: 8px; }
.pagination a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--soft);
  text-decoration: none;
  font-weight: 850;
}
.pagination a.current { background: var(--ink); color: #fff; }
.empty-state {
  text-align: center;
  border: 1px dashed #c5d8d3;
  border-radius: var(--radius);
  padding: 68px 25px;
  background: var(--soft);
}
.empty-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4f0d3;
  color: var(--accent-dark);
  font-size: 1.55rem;
  font-weight: 900;
}
.empty-state h1, .empty-state h2 { margin-bottom: 6px; color: var(--ink); }

/* --------------------------------------------------------------------------
   Eenzelnen Artikel
   -------------------------------------------------------------------------- */
.article-page { background: #fff; }
.article-hero {
  padding: 70px 0 108px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(143,189,45,.34), transparent 27%),
    linear-gradient(130deg, #083543, #11677b);
}
.back-link { display: inline-block; margin-bottom: 27px; color: #e2f1ef; text-decoration: none; font-weight: 800; }
.article-meta.light { color: #c4e970; }
.article-hero h1 {
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 4.35rem);
  line-height: 1.07;
  letter-spacing: -.04em;
}
.article-hero .lead { max-width: 760px; margin: 0; color: #dceceb; font-size: 1.16rem; }
.article-wrap { position: relative; margin-top: -61px; padding-bottom: 91px; }
.featured-image {
  margin: 0 0 39px;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 22px;
  background: #ddd;
  box-shadow: var(--shadow);
}
.featured-image img { width: 100%; max-height: 570px; object-fit: cover; }
.prose { color: #273c41; font-family: Georgia, "Times New Roman", serif; font-size: 1.14rem; line-height: 1.86; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 {
  color: var(--ink);
  font-family: inherit, Arial, sans-serif;
  line-height: 1.24;
  margin-top: 2em;
}
.prose h2 { font-size: 1.9rem; }
.prose h3 { font-size: 1.45rem; }
.prose a { color: var(--blue); }
.prose blockquote { margin: 30px 0; padding: 20px 25px; border-left: 5px solid var(--accent); background: #f2f8e8; font-style: italic; }
.prose li { margin-bottom: 7px; }
.gallery-section { margin-top: 55px; border-top: 1px solid var(--line); padding-top: 35px; }
.gallery-section h2 { color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.gallery-grid a { overflow: hidden; border-radius: 13px; background: var(--soft); aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-grid a:hover img { transform: scale(1.035); }
.article-bottom { margin-top: 55px; padding-top: 30px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.bi-site-footer { padding: 48px 0 24px; background: #072f3c; color: #d5e7e5; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-grid strong { color: #fff; font-size: 1.2rem; }
.footer-grid p { margin: 5px 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #d5e7e5; text-decoration: none; }
.footer-links a:hover { color: #bde269; }
.copyright { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.11); color: #93b0b2; font-size: .85rem; }
.flash { margin-top: 18px; padding: 13px 16px; border-radius: 11px; font-weight: 700; }
.flash-success { background: #e8f6e4; color: #285f28; border: 1px solid #c3e0b9; }
.flash-error { background: #fff0f0; color: #8f2929; border: 1px solid #efc0c0; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .bi-site-header .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    padding: 14px 18px 20px;
    background: #083443;
    box-shadow: 0 16px 25px rgba(5,35,45,.18);
    flex-direction: column;
    align-items: stretch;
  }
  .bi-site-header .main-nav.open { display: flex; }
  .bi-site-header .main-nav a { padding: 12px 14px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .shell, .narrow, .articles-site .container { width: min(100% - 24px, 1180px); }
  .bi-site-header .header-inner { min-height: 72px; }
  .bi-site-header .brand img { max-width: 215px; max-height: 53px; }
  .bi-site-header .main-nav { top: 72px; }
  .compact-hero { padding: 62px 0; }
  .page-main { padding: 50px 0 70px; }
  .list-toolbar { align-items: stretch; flex-direction: column; }
  .search-form { min-width: 0; width: 100%; }
  .article-grid { grid-template-columns: 1fr; }
  .card-image { height: 220px; }
  .article-hero { padding: 55px 0 92px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { flex-direction: column; }
}
