/* Blog / News – clean BauCockpit-ähnliche Surfaces (fa/RTL) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.content-layout {
  display: grid;
  gap: 2.5rem;
  padding: 1.75rem 0 3.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .content-layout,
  .content-layout--blog {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 2.75rem;
  }
}

.content-hero--inline {
  padding: 0 0 1.5rem;
  margin: 0 0 0.5rem;
  background: none;
  border-bottom: 1px solid rgba(12, 28, 36, 0.08);
}

.content-hero--inline .eyebrow {
  margin: 0 0 0.45rem;
  color: var(--sea-deep);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-hero--inline h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.25;
}

.content-hero__lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.7;
}

.section-label {
  margin: 2rem 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

/* Sidebar */
.content-sidebar {
  display: grid;
  gap: 1.75rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 10px;
}

.content-sidebar > section {
  display: grid;
  gap: 0.75rem;
}

.content-sidebar h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.search-bar--side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0;
}

.search-bar--side input {
  width: 100%;
  border: 1px solid rgba(12, 28, 36, 0.14);
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.search-bar--side button {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: var(--sea-deep);
  color: #fff;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-bar--side button:hover {
  background: var(--ink);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.side-list--numbered {
  list-style: decimal;
  padding-inline-start: 1.2rem;
}

.side-list li {
  line-height: 1.45;
}

.side-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.side-list a:hover {
  color: var(--sea-deep);
}

.side-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Featured trio (BauCockpit-Stil: 100% + 2×50%) */
.featured-stack {
  display: grid;
  gap: 1.15rem;
  margin: 1.25rem 0 0.75rem;
}

.featured-pair {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 760px) {
  .featured-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.featured-card {
  background: #fff;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.featured-card__link {
  display: grid;
  gap: 0;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.featured-card__link--stack {
  grid-template-columns: 1fr;
}

.featured-card--lead .featured-card__media--lead .featured-card__img,
.featured-card--lead .featured-card__img {
  aspect-ratio: 21 / 9;
}

.featured-card--lead .featured-card__body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.featured-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8eef1;
  display: block;
}

.featured-card__img--ph {
  background: linear-gradient(135deg, #d9e4e8, #f2efe9);
}

.featured-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.featured-card__body h2 {
  margin: 0.45rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--ink);
  line-height: 1.4;
}

.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--sea-deep);
  background: rgba(47, 111, 126, 0.1);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  text-decoration: none;
}

.snippet {
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  line-height: 1.7;
}

.meta-line {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.read-more {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--sea-deep);
}

.card-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 760px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.content-card {
  background: #fff;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.content-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.content-card a:hover h3 {
  color: var(--sea-deep);
}

.content-card__media {
  position: relative;
}

.content-card img,
.content-card__ph {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #e8eef1;
}

.content-card__ph {
  background: linear-gradient(135deg, #d9e4e8, #f2efe9);
}

.ai-badge {
  position: absolute;
  inset-inline-end: 0.55rem;
  bottom: 0.55rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(12, 28, 36, 0.55);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.content-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.content-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.45;
}

.content-card p,
.empty-state {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.pager {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.25rem;
}

.pager a {
  text-decoration: none;
  font-weight: 700;
  color: var(--sea-deep);
}

.popular-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(12, 28, 36, 0.1);
}

.popular-bottom h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  color: var(--ink);
}

/* Article detail – Lesefortschritt (fix, folgt dem Scroll) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 6px;
  z-index: 120;
  background: rgba(12, 28, 36, 0.14);
  pointer-events: none;
}

.reading-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #2f6f7e 0%, #b8873b 100%);
  box-shadow: 0 1px 6px rgba(47, 111, 126, 0.35);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
  will-change: transform;
}

[dir="rtl"] .reading-progress__bar {
  transform-origin: right center;
  background: linear-gradient(270deg, #2f6f7e 0%, #b8873b 100%);
}

.article-layout {
  display: grid;
  gap: 2.5rem;
  padding: 1.5rem 0 3.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }
}

.article-main {
  min-width: 0;
}

.article-page__cover-wrap {
  position: relative;
  margin: 0 0 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(12, 28, 36, 0.08);
}

.article-page__cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  background: #e8eef1;
}

.article-page__header h1 {
  margin: 0.55rem 0 0.55rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.35;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.article-breadcrumb a {
  color: var(--sea-deep);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-page__meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.article-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.tool-btn {
  border: 1px solid rgba(12, 28, 36, 0.14);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink-soft);
}

.tool-btn:hover {
  border-color: var(--sea);
  color: var(--sea-deep);
}

.tts-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  background: rgba(47, 111, 126, 0.08);
  border: 1px solid rgba(47, 111, 126, 0.18);
  border-radius: 10px;
}

.tts-bar__label {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.92rem;
}

.tts-bar select,
.tts-bar button {
  font: inherit;
  border-radius: 8px;
  border: 1px solid rgba(12, 28, 36, 0.14);
  background: #fff;
  padding: 0.4rem 0.65rem;
}

.tts-bar button {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.tts-bar button[data-tts-pause] {
  background: #fff;
  color: var(--ink);
}

.tts-bar button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.tts-bar__status {
  flex: 1 1 100%;
  font-size: 0.85rem;
  color: var(--sea-deep);
}

.tts-bar__status.is-error {
  color: #9b2c2c;
}

.toc-wrap {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 10px;
  border-inline-start: 3px solid var(--sea);
}

.toc-wrap ol {
  margin: 0.4rem 0 0;
  padding-inline-start: 1.2rem;
}

.prose {
  font-size: 1.06rem;
  line-height: 1.95;
  color: var(--text);
}

.prose h2,
.prose h3 {
  color: var(--ink);
  font-family: var(--font-display);
  margin-top: 1.7rem;
}

.prose a {
  word-break: break-word;
}

.faq {
  margin-top: 2.5rem;
}

.faq details {
  border-bottom: 1px solid rgba(12, 28, 36, 0.1);
  padding: 0.75rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.feedback-box {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 12px;
  background: #fff;
}

.feedback-box h2 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(12, 28, 36, 0.14);
  background: #fff;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.feedback-btn:hover {
  border-color: var(--sea);
}

.feedback-btn.is-active {
  background: rgba(47, 111, 126, 0.12);
  border-color: var(--sea);
}

.feedback-btn__count {
  color: var(--text-muted);
  font-weight: 600;
}

.article-nav {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .article-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.article-nav a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(12, 28, 36, 0.1);
  border-radius: 12px;
  background: #fff;
}

.article-nav a:hover {
  border-color: var(--sea);
}

.article-nav__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.article-nav__title {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.share-print {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(12, 28, 36, 0.12);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.85);
}

.share-print__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.share-print__label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  margin-inline-end: 0.25rem;
}

.share-print__btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(12, 28, 36, 0.16);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  text-decoration: none;
}

.share-print__btn:hover {
  border-color: var(--sea);
  color: var(--sea-deep);
}

.share-print__btn--print {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.share-print__status {
  flex: 1 1 100%;
  font-size: 0.85rem;
  color: var(--sea-deep);
}

.article-cta {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--ink);
  color: rgba(255, 253, 249, 0.9);
  border-radius: 12px;
}

.article-cta p {
  margin: 0 0 0.9rem;
}

.article-cta .btn--primary {
  color: var(--ink);
}

.source-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  word-break: break-all;
}

.back-to-top {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 999px;
  background: var(--sea-deep);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(12, 28, 36, 0.2);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 720px) {
  .site-nav a:nth-child(n + 5):not(.nav-cta) {
    display: none;
  }
}

/* --- Print / PDF --- */
@media print {
  @page {
    margin: 14mm 12mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  .site-header,
  .site-footer,
  .content-sidebar,
  .skip-link,
  .chat-modal,
  .cookie-banner,
  .cookie-reopen,
  .reading-progress,
  .tts-bar,
  .share-print,
  .feedback-box,
  .article-nav,
  .article-cta,
  .back-to-top,
  .ai-badge,
  .no-print,
  [data-open-chat],
  .nav-cta {
    display: none !important;
  }

  .shell,
  .article-layout,
  .article-main,
  .content-layout {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .article-page__cover-wrap,
  .article-page__cover {
    max-height: 280px;
    object-fit: cover;
    break-inside: avoid;
  }

  .prose a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  .prose a[href^="/"]::after,
  .prose a[href^="#"]::after {
    content: "";
  }

  .toc-wrap,
  .faq,
  .prose {
    break-inside: avoid-page;
  }

  h1, h2, h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .article-main::before {
    content: "مهاجران برتر — mohajerat-be-alman.de";
    display: block;
    font-size: 9pt;
    color: #444;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.4rem;
  }
}
