/* ============================================
   ARTIKEL-ARCHIV — Additional Styles
   ============================================ */

.nav-links a.is-active {
  color: var(--rot-light);
}
.nav-links a.is-active::after { width: 100%; }

/* Page Header */
.page-header {
  padding: calc(8rem + var(--gutter)) 0 5rem;
  background: linear-gradient(180deg, var(--blau) 0%, var(--blau-mid) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-header-bg { position: absolute; inset: 0; pointer-events: none; }
.page-header-bg-stripe {
  position: absolute;
  top: 0; bottom: 0; right: -8%;
  width: 22%;
  background: var(--rot);
  transform: skewX(-12deg);
  opacity: 0.85;
}
.page-header::before {
  content: "ARCHIV";
  position: absolute;
  bottom: -3rem; left: -1rem;
  font-family: var(--display);
  font-size: clamp(8rem, 18vw, 18rem);
  line-height: 0.85;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -0.01em;
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  margin-top: 1.5rem;
}
.page-header .eyebrow { color: var(--rot-light); }
.page-header .h-section { color: #fff; }
.page-h1 {
  font-size: clamp(2.75rem, 7vw, 6.5rem) !important;
  line-height: 0.9 !important;
  margin-bottom: 1.5rem !important;
}
.page-header .lead { color: rgba(255, 255, 255, 0.8); margin-top: 1rem; max-width: 56ch; }
.page-header-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.page-header-stats > div { display: flex; flex-direction: column; gap: 0.25rem; }
.page-header-stats span:first-child {
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--rot-light);
  letter-spacing: 0.02em;
}
.page-header-stats small {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Cover-Frame — Magazin-Cover-Style im Hero */
.page-header-cover { display: flex; justify-content: center; }
.cover-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3/4;
  background: var(--paper);
  color: var(--ink);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotate(2deg);
  transition: transform 0.6s var(--ease);
}
.cover-frame:hover { transform: rotate(0deg) translateY(-6px); }
.cover-issue {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rot);
}
.cover-eyebrow {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--ink);
  opacity: 0.7;
  margin-top: 2.5rem;
}
.cover-title {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--blau);
  margin-top: 0.5rem;
}
.cover-stripe {
  height: 6px;
  background: var(--rot);
  margin-top: 1rem;
  width: 60%;
}
.cover-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}

@media (max-width: 860px) {
  .page-header-grid { grid-template-columns: 1fr; }
  .page-header-bg-stripe { width: 60%; right: -30%; }
  .cover-frame { max-width: 280px; }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--rot-light); }
.breadcrumb span:last-child { color: var(--rot-light); }

/* Featured Article */
.article-featured {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.article-image {
  position: sticky;
  top: 6rem;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--blau-light);
  box-shadow: 0 30px 60px -30px rgba(11, 42, 74, 0.4);
}
.article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-body .news-meta { margin-bottom: 1.5rem; }
.article-title {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: 0.005em;
  font-weight: 400;
}
.article-lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.article-body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 62ch;
}
.article-body p strong { color: var(--blau); font-weight: 700; }
.article-signature {
  margin-top: 2.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
}
.article-signature em {
  font-family: var(--display);
  font-style: normal;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.article-signature span {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
}

@media (max-width: 860px) {
  .article-featured { grid-template-columns: 1fr; }
  .article-image { position: relative; top: 0; aspect-ratio: 4/3; }
}

/* Filter Bar */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.filter-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-tag:hover {
  border-color: var(--blau);
  color: var(--blau);
}
.filter-tag.is-active {
  background: var(--blau);
  color: var(--paper);
  border-color: var(--blau);
}
.filter-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}
.filter-sep { margin: 0 0.5rem; opacity: 0.4; }
@media (max-width: 720px) {
  .filter-bar-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .filter-bar { top: 56px; }
}

/* Archive List */
.archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}
.archive-head h2 { margin-bottom: 0 !important; }
.archive-head .lead { margin-top: 0.5rem; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.archive-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(11, 42, 74, 0.2);
  border-color: rgba(200, 16, 46, 0.3);
}
.archive-image {
  aspect-ratio: 1/1;
  background: var(--blau-light);
  overflow: hidden;
}
.archive-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.archive-card:hover .archive-image img { transform: scale(1.05); }
.archive-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.archive-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.news-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--rot, #c8102e);
  color: #fff;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.archive-card.is-news {
  border-top: 3px solid var(--rot, #c8102e);
}
.archive-body h3 {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
}
.archive-body p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 1rem;
  flex: 1;
}
.archive-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rot);
  align-self: flex-start;
  border-bottom: 1.5px solid var(--rot);
  padding-bottom: 0.2rem;
  transition: gap 0.2s;
}

@media (max-width: 720px) {
  .archive-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ARTICLE MODAL
   ============================================ */
.archive-link {
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--rot);
  padding: 0 0 0.2rem;
  font: inherit;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rot);
  align-self: flex-start;
  display: inline-block;
  transition: opacity 0.2s;
}
.archive-link:hover { opacity: 0.75; }
.archive-link:focus-visible { outline: 2px solid var(--rot); outline-offset: 4px; }

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.article-modal.is-open {
  display: flex;
  animation: modalFadeIn 0.25s var(--ease) both;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 42, 74, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.article-modal-dialog {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  width: min(820px, 100%);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  border-radius: 2px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
  animation: modalSlideIn 0.35s var(--ease) both;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.article-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(11, 42, 74, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}
.article-modal-close:hover { background: var(--rot); transform: rotate(90deg); }
.article-modal-close svg { width: 18px; height: 18px; }

.article-modal-cover {
  margin: 0;
  width: 100%;
  background: var(--blau-light);
  overflow: hidden;
  position: relative;
}
.article-modal-cover::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 4px;
  background: var(--rot);
}
.article-modal-cover img {
  width: 100%;
  height: auto;
  max-height: min(80vh, 900px);
  object-fit: contain;
  display: block;
  background: #0b2a4a;
}

.article-modal-content {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.article-modal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}
.article-modal-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--rot);
  display: inline-block;
}
.article-modal-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.1rem;
  max-width: 62ch;
}
.article-modal-body p strong { color: var(--blau); font-weight: 700; }
.article-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.article-modal-body ul li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.4rem;
}
.article-modal-body ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--rot);
  font-weight: 700;
}

/* Body-Lock, wenn Modal offen */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .article-modal { padding: 0; }
  .article-modal-dialog { max-height: 100vh; max-width: 100%; }
  .article-modal-content { padding: 1.5rem; }
}
