/* ── Font-Face gemäß DAH Typografie-Leitfaden ── */
@font-face {
  font-family: "Barlow Condensed";
  src: url("/wp-content/uploads/2026/03/BarlowCondensed-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/wp-content/uploads/2026/03/BarlowCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/wp-content/uploads/2026/03/BarlowCondensed-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/wp-content/uploads/2026/06/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/wp-content/uploads/2026/06/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/wp-content/uploads/2026/06/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── CSS-Tokens ── */
:root {
  --news-glassBg: rgba(255, 255, 255, 0.32);
  --news-glassBorder: rgba(255, 255, 255, 0.45);
  --news-glassBlur: 18px;

  --news-bodySize: clamp(14px, 1.4vw, 16px);
  --news-titleSize: clamp(26px, 4.5vw, 44px);
  --news-subheadSize: clamp(18px, 3.2vw, 28px);
  --news-green: #006532;

  --news-padX: clamp(28px, 4vw, 48px);
  --news-padY: clamp(18px, 2.5vh, 28px);
  --news-gapText: clamp(16px, 2.2vh, 24px);
  --news-gapBody: clamp(12px, 1.8vh, 18px);
  --news-radius: 28px;

  --news-tx: 0px;
  --news-ty: 0px;
  --news-rot: 0deg;
  --news-hlColor: #006532;
  --news-highlight-color: #ffffff;
}

/* ── News-Kachel ── */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--news-padY) var(--news-padX);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  color: #0a1a1f;
  border-radius: var(--news-radius);
  gap: var(--news-gapText);
  text-align: left;
  box-shadow: 0 12px 28px -10px rgba(0, 20, 30, 0.12);
  box-sizing: border-box;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--news-glassBg);
  border: 1px solid var(--news-glassBorder);
  -webkit-backdrop-filter: blur(var(--news-glassBlur)) saturate(1.25);
          backdrop-filter: blur(var(--news-glassBlur)) saturate(1.25);
  z-index: 0;
  transform: translate(var(--news-tx), var(--news-ty)) rotate(var(--news-rot));
  will-change: transform;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
}

.news-card > * {
  position: relative;
  z-index: 2;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.news-card + .news-card {
  margin-top: 69px;
}

/* ── Kopfzeile ── */
.news-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  width: 100%;
  margin-bottom: 4px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.news-date {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: calc(var(--news-bodySize) * 0.9);
  color: #2c5a4a;
  letter-spacing: 0.3px;
  margin: 0;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 40px;
  display: inline-block;
  flex-shrink: 0;
}

.news-title {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 4vw, var(--news-titleSize));
  color: var(--news-highlight-color);
  background-color: var(--news-hlColor);
  display: inline;
  padding: 0.15em 0.5em;
  margin: 0 0 12px -0.1em;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: left;
  text-shadow: none;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  box-sizing: border-box;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  white-space: normal;
}

.news-subhead {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 3vw, var(--news-subheadSize));
  text-transform: uppercase;
  color: var(--news-hlColor);
  margin: 0 0 8px 0;
  letter-spacing: 0.01em;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  max-width: 100%;
}

/* ── Vorschau-Bereich ── */
.news-preview {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.news-preview-text {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.news-thumbnail {
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  align-self: flex-start;
  transition: opacity 0.4s ease, max-width 0.4s ease, max-height 0.4s ease, margin 0.4s ease;
}

.news-card.expanded .news-thumbnail {
  opacity: 0;
  max-width: 0;
  max-height: 0;
  margin: 0;
  pointer-events: none;
}

.news-preview .news-subhead {
  margin: 0 0 8px 0;
}

.news-preview .news-body {
  margin: 0;
}

/* ── Fließtext ── */
.news-body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 2vw, var(--news-bodySize));
  line-height: 1.6;
  margin: 0;
  text-align: left;
  color: #13262e;
  word-wrap: break-word;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  max-width: 100%;
}

.news-body b,
.news-body strong {
  font-weight: 600;
  color: #0d2e21;
}

/* ── Trennlinie ── */
.glass-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  margin: 4px 0 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Weiterlesen Button ── */
.news-toggle-btn,
.news-toggle-btn:link,
.news-toggle-btn:visited,
.news-toggle-btn:active,
.news-toggle-btn:focus,
button.news-toggle-btn,
button.news-toggle-btn:link,
button.news-toggle-btn:visited,
button.news-toggle-btn:active,
button.news-toggle-btn:focus {
  display: inline-block;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: calc(clamp(13px, 1.8vw, var(--news-bodySize)) * 1.0);
  color: var(--news-hlColor) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 2px solid var(--news-hlColor) !important;
  border-radius: 50px;
  padding: 6px 20px;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  line-height: 1.2;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

.news-toggle-btn:hover,
button.news-toggle-btn:hover {
  background-color: var(--news-hlColor) !important;
  background: var(--news-hlColor) !important;
  color: #F9FFEA !important;
  transform: translateY(-2px);
  border-color: var(--news-hlColor) !important;
}

.news-toggle-btn:focus-visible {
  outline: 2px solid var(--news-hlColor) !important;
  outline-offset: 2px !important;
}

/* ── Bild-Wrapper ── */
.news-image-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.news-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.3s ease;
  max-width: 100%;
}

.news-image-attribution {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  padding: 30px 16px 12px 16px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #e8f0ec;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  text-align: right;
  border-radius: 0 0 16px 16px;
  pointer-events: none;
  word-wrap: break-word;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.news-image-attribution a {
  color: #b3e6d2;
  text-decoration: underline;
  text-underline-offset: 2px;
  pointer-events: auto;
}

.news-image-attribution a:hover {
  color: #ffffff;
}

.news-image-wrapper:hover .news-image-attribution {
  opacity: 1;
  visibility: visible;
}

.news-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: calc(clamp(12px, 1.6vw, var(--news-bodySize)) * 0.85);
  color: #0d2e21 !important;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 101, 50, 0.4);
  border-radius: 40px;
  padding: 6px 14px;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 12px;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.news-download:hover {
  background: rgba(0, 101, 50, 0.15);
  border-color: var(--news-hlColor);
  transform: translateY(-2px);
}

/* ── Ausklappbarer Bereich ── */
.news-expandable {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.4s ease, margin 0.3s;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--news-gapBody);
  max-width: 100%;
  box-sizing: border-box;
}

.news-expandable.open {
  max-height: 5000px;
  opacity: 1;
  margin-top: 8px;
}

/* ── "Mehr anzeigen" Button ── */
.news-load-more-wrapper {
  text-align: center;
  margin-top: 40px;
  max-width: 100%;
  box-sizing: border-box;
}

.news-load-more-btn,
.news-load-more-btn:link,
.news-load-more-btn:visited,
.news-load-more-btn:active,
.news-load-more-btn:focus {
  display: inline-block;
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: calc(clamp(14px, 1.8vw, var(--news-bodySize)) * 1.1);
  color: var(--news-hlColor) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 2px solid var(--news-hlColor) !important;
  border-radius: 50px;
  padding: 8px 28px;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  line-height: 1.2;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

.news-load-more-btn:hover {
  background-color: var(--news-hlColor) !important;
  background: var(--news-hlColor) !important;
  color: #F9FFEA !important;
  transform: translateY(-2px);
}

.news-load-more-btn:focus-visible {
  outline: 2px solid var(--news-hlColor) !important;
  outline-offset: 2px !important;
}

.news-hidden-chunk .news-card:first-child {
  margin-top: 69px;
}

/* ── Haupttext-Überschriften ── */
.news-body h2 {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3.5vw, var(--news-titleSize));
  color: var(--news-highlight-color);
  background-color: #94c11c;
  display: inline-block;
  padding: 4px 20px 4px 20px;
  margin: 20px 0 14px 0px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  max-width: 100%;
  box-sizing: border-box;
}

.news-body h3 {
  font-family: "Barlow Condensed", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 3vw, var(--news-subheadSize));
  color: var(--news-hlColor);
  margin: 14px 0 10px 0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  max-width: 100%;
}

.news-body ul,
.news-body ol {
  margin: 8px 0 12px 0;
  padding-left: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.news-body ul {
  list-style-type: disc;
}

.news-body ol {
  list-style-type: decimal;
}

.news-body li {
  margin-bottom: 4px;
  word-wrap: break-word;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.news-body p {
  word-wrap: break-word;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  max-width: 100%;
}

.file-icon {
  font-size: 1.1em;
}

/* ── Fallback für Browser ohne backdrop-filter ── */
@supports not (backdrop-filter: blur(1px)) {
  .news-card {
    background: rgba(255, 255, 255, 0.90);
  }
  .news-toggle-btn,
  .news-load-more-btn {
    background: rgba(255, 255, 255, 0.85) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* ── MOBILE (bis 768px) ──                                              */
/* ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .news-card {
    padding: clamp(16px, 3vw, 22px) clamp(14px, 2.5vw, 18px);
    border-radius: 20px;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .news-card::before {
    inset: 0;
    border-radius: inherit;
    transform: none;
  }

  .news-card {
    --news-tx: 0px;
    --news-ty: 0px;
    --news-rot: 0deg;
  }

  /* ── Alle Inhalte: NIEMALS innerhalb eines Wortes umbrechen ── */
  .news-card,
  .news-card * {
    white-space: normal;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    max-width: 100%;
  }

  /* ── Alle Überschriften als Block ── */
  .news-card h1,
  .news-card h2,
  .news-card h3,
  .news-card h4,
  .news-card h5,
  .news-card h6,
  .news-card .news-title,
  .news-card [class*="title"] {
    display: block;
    width: 100%;
    white-space: normal;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    max-width: 100%;
    padding-left: 0;
    margin-left: 0;
  }

  /* ── NEWS-TITEL: 1.7× größer ── */
  .news-card .news-title {
    font-size: clamp(37px, 6.8vw, calc(var(--news-titleSize) * 1.7));
  }

  /* ── SUBHEAD: 1.3× größer ── */
  .news-card .news-subhead {
    font-size: clamp(23px, 3.9vw, calc(var(--news-subheadSize) * 1.3));
  }

  /* ── Flex-Container auf wrap ── */
  .news-card .news-header,
  .news-card .news-preview {
    flex-wrap: wrap;
  }

  .news-date {
    white-space: normal;
    font-size: clamp(12px, 1.8vw, 14px);
  }

  .news-preview {
    flex-direction: column;
    gap: 12px;
  }

  .news-thumbnail {
    max-width: 120px;
    max-height: 120px;
    order: -1;
    align-self: center;
  }

  .news-body {
    font-size: clamp(14px, 2.2vw, 16px);
    line-height: 1.6;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .news-toggle-btn {
    padding: 5px 16px;
    font-size: clamp(12px, 2vw, 14px);
    white-space: normal;
  }

  .news-load-more-btn {
    padding: 6px 20px;
    font-size: clamp(13px, 2vw, 15px);
    white-space: normal;
  }

  .news-image-attribution {
    font-size: 10px;
    padding: 20px 12px 8px 12px;
  }

  .news-body h2 {
    font-size: clamp(18px, 4vw, 24px);
    padding: 4px 14px;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .news-body h3 {
    font-size: clamp(16px, 3vw, 20px);
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .news-download {
    font-size: clamp(12px, 1.8vw, 14px);
    padding: 5px 12px;
  }

  .news-card + .news-card {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .news-card {
    padding: clamp(14px, 2.5vw, 18px) clamp(12px, 2vw, 14px);
    border-radius: 16px;
  }

  .news-card .news-title {
    font-size: clamp(31px, 6vw, calc(var(--news-titleSize) * 1.7));
  }

  .news-card .news-subhead {
    font-size: clamp(20px, 3.5vw, calc(var(--news-subheadSize) * 1.3));
  }

  .news-thumbnail {
    max-width: 100px;
    max-height: 100px;
  }

  .news-body {
    font-size: clamp(13px, 2vw, 14px);
    line-height: 1.55;
  }

  .news-toggle-btn {
    padding: 4px 14px;
    font-size: clamp(11px, 1.8vw, 13px);
  }

  .news-load-more-btn {
    padding: 6px 16px;
    font-size: clamp(12px, 1.8vw, 14px);
  }

  .news-body h2 {
    font-size: clamp(16px, 3.5vw, 20px);
    padding: 3px 10px;
  }

  .news-body h3 {
    font-size: clamp(14px, 2.8vw, 18px);
  }
}