:root {
  --background-color: #fff;
  --text-color: #1d1d1b;
  --text-color-light: #8095a1;
  --border-color: #e7ebee;
  --gradient-grey-dark: #dce1e5;
  --gradient-grey-light: #f0f4f6;
  --gradient-orange-dark: #ef7a00;
  --gradient-orange-light: #f9ac00;
  --gradient-headline-start: #cf0055;
  --gradient-headline-middle: #e7622b;
  --gradient-headline-end: #f08e17;
  --error-color: #d70b0b;
  --content-width: 1200px;
  --content-width-wide: 1480px;
  --header-height: 100px;
  --page-padding-sides: 25px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
  background: var(--background-color);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gradient-headline-start);
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--page-padding-sides);
}

.container.wide {
  max-width: var(--content-width-wide);
}

.text-gradient {
  background: linear-gradient(
    90deg,
    var(--gradient-headline-start) 0%,
    var(--gradient-headline-middle) 50%,
    var(--gradient-headline-end) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-grey {
  background: linear-gradient(90deg, var(--gradient-grey-dark) 0%, var(--gradient-grey-light) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  display: block;
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  font-weight: 700;
  font-size: 17px;
  color: var(--text-color-light);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gradient-headline-start);
}

.nav-current {
  font-weight: 700;
  font-size: 17px;
  color: var(--gradient-headline-start);
}

.page {
  padding-bottom: 4rem;
}

.hero-section {
  padding-top: 2.5rem;
}

.hero-panel {
  position: relative;
  padding: 2.5rem 2.75rem 2rem;
  margin: 0 0 1rem;
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(177, 25, 73, 0.88) 0%,
    rgba(207, 0, 85, 0.88) 50%,
    rgba(244, 152, 0, 0.88) 100%
  );
  box-shadow: 0 18px 40px rgba(121, 35, 81, 0.18);
}

.hero-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -14px;
  left: 18px;
  width: calc(100% - 36px);
  height: 100%;
  background: linear-gradient(90deg, rgb(121, 35, 81) 0%, rgb(238, 116, 2) 100%);
}

.hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
}

.hero-panel h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
}

.hero-lead {
  margin: 0;
  max-width: 52rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.principles {
  padding: 2.5rem var(--page-padding-sides) 1rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 900;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.principle-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
}

.principle-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.principle-card p {
  margin: 0;
  color: var(--text-color-light);
  font-size: 0.95rem;
}

.content-section {
  padding-top: 1.5rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.status {
  margin: 0;
  color: var(--text-color-light);
  font-size: 0.95rem;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.sidebar {
  border-radius: 4px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(86, 113, 127, 0.15);
}

.sidebar h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.stat-pill {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(86, 113, 127, 0.18);
  font-size: 0.95rem;
}

.stat-pill:last-child {
  border-bottom: none;
}

.stat-pill strong {
  font-weight: 700;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fafbfc;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 200px;
  font-size: 0.9rem;
}

.filter-field span {
  font-weight: 700;
  color: var(--text-color-light);
}

.filter-field select {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
}

.category-chip .text-gradient,
.badge .text-gradient {
  display: inline-block;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
}

.badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

.badge-bundesweit {
  background: rgba(207, 0, 85, 0.08);
}

.category-chip-bundesweit {
  font-weight: 700;
}

.badge-geo {
  background: rgba(207, 0, 85, 0.08);
}

.badge-topic {
  background: rgba(240, 142, 23, 0.15);
  color: #b35a00;
}

.badge-press {
  background: rgba(33, 37, 41, 0.08);
  color: #444;
}

.badge-video {
  background: rgba(255, 0, 0, 0.1);
  color: #b30000;
}

.badge-tiktok {
  background: rgba(0, 0, 0, 0.08);
  color: #111;
}

.badge-x {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  align-items: start;
  padding: 1.1rem 0 1.35rem;
  border-bottom: 1px solid #eee;
}

.article-card:last-child {
  border-bottom: none;
}

.article-card .meta {
  grid-column: 1 / -1;
  color: var(--text-color-light);
  font-size: 0.9rem;
}

.article-card-body {
  min-width: 0;
}

.article-card-body h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.article-card .subtitle {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color-light);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.article-card .lead {
  margin: 0.35rem 0 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.article-card .read-more {
  flex-shrink: 0;
  margin-top: 0.1rem;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.15rem 0 0 0.25rem;
}

.article-card .read-more-icon {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(
    90deg,
    var(--gradient-headline-start) 0%,
    var(--gradient-headline-middle) 50%,
    var(--gradient-headline-end) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gradient-headline-start);
  -webkit-text-fill-color: transparent;
}

.article-card .read-more:hover {
  opacity: 0.85;
}

.articles-pagination {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.pagination-info {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-color-light);
}

.load-more-btn {
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: var(--text-color);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.load-more-btn:hover:not(:disabled) {
  border-color: var(--gradient-headline-middle);
  color: var(--gradient-headline-start);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Lesefenster (Modal) */
body.reader-open {
  overflow: hidden;
}

.article-reader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.article-reader[hidden] {
  display: none !important;
}

.article-reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 27, 0.55);
  backdrop-filter: blur(2px);
}

.article-reader-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  min-height: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(29, 29, 27, 0.28);
  overflow: hidden;
}

.article-reader-header {
  flex: 0 0 auto;
  padding: 1.25rem 3rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.article-reader-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: var(--gradient-grey-light);
  color: var(--text-color);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.article-reader-close:hover {
  background: var(--gradient-grey-dark);
}

.article-reader-meta {
  margin: 0 0 0.5rem;
  color: var(--text-color-light);
  font-size: 0.9rem;
}

.article-reader-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.article-reader-open-btn {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--gradient-headline-start) 0%,
    var(--gradient-headline-middle) 55%,
    var(--gradient-headline-end) 100%
  );
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(207, 0, 85, 0.2);
}

.article-reader-open-btn:hover {
  opacity: 0.92;
}

.article-reader-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-color-light);
}

.article-reader-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.article-reader-footer {
  flex: 0 0 auto;
  padding: 0.85rem 1.5rem 1rem;
  border-top: 1px solid var(--border-color);
  background: #fafbfc;
}

.article-reader-source {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gradient-headline-start);
}

.article-reader-source:hover {
  text-decoration: underline;
}

.article-body {
  line-height: 1.7;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.article-body > * {
  max-width: 100%;
}

.article-body img {
  display: block;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  margin: 1rem auto;
  border-radius: 4px;
}

.article-body figure {
  margin: 1rem 0;
}

.article-body h1 {
  display: none;
}

.article-body h2,
.article-body h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.3;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body a {
  color: var(--gradient-headline-start);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Teaser/Share-Blöcke aus Quell-HTML ausblenden */
.article-body ul:has([href*="facebook"]),
.article-body ul:has([href*="whatsapp"]),
.article-body ul:has([href^="mailto:"]) {
  display: none;
}

.source-link {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.source-link a {
  color: var(--gradient-headline-start);
  font-weight: 700;
  text-decoration: none;
}

.source-link a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(90deg, var(--gradient-grey-dark) 0%, var(--gradient-grey-light) 100%);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-brand,
.footer-meta {
  margin: 0;
}

.footer-meta {
  color: var(--text-color-light);
  font-size: 0.9rem;
}

.error {
  color: var(--error-color);
}

@media (max-width: 900px) {
  :root {
    --header-height: 84px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .header-inner {
    align-items: center;
  }

  .logo img {
    width: 120px;
  }

  .article-reader {
    padding: 0;
    align-items: flex-end;
  }

  .article-reader-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
  }
}
