/* ================================
   Naturschutz Blog (scoped)
   UX-Verbesserungen + weniger Panorama-Bilder
   ================================ */

.ns-page {
  --max: 1100px;

  --text: #111;
  --muted: #5b5b5b;

  --surface: #ffffff;
  --surface2: #f6f6f7;

  --border: rgba(0, 0, 0, 0.1);
  --border2: rgba(0, 0, 0, 0.16);

  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.11);

  --focusRing: 0 0 0 4px rgba(31, 94, 59, 0.28);
  --radius: 18px;

  --accent: #1f5e3b;
  --accentSoft: rgba(31, 94, 59, 0.14);

  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 16px 64px;
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}

.ns-page .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;
}

/* ---------- Hero ---------- */
.ns-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin: 12px 0 18px;
}

.ns-hero__text,
.ns-hero__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.ns-hero__text h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.ns-hero__text p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.ns-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Buttons ---------- */
.ns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border2);
  padding: 10px 14px;
  font-weight: 750;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.ns-btn:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.ns-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Focus (Accessibility) ---------- */
.ns-btn:focus-visible,
.ns-chip:focus-visible,
.ns-clear:focus-visible,
.ns-card:focus-visible {
  outline: none;
  border-color: rgba(31, 94, 59, 0.45);
  box-shadow: var(--focusRing), var(--shadow-sm);
}

.ns-hero__card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
}

.ns-hero__card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Panel ---------- */
.ns-panel {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

/* Search */
.ns-search {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
}

.ns-search__icon {
  width: 20px;
  height: 20px;
  color: rgba(0, 0, 0, 0.55);
  display: inline-flex;
}

.ns-search__icon svg {
  width: 20px;
  height: 20px;
}

.ns-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.2;
  padding: 4px 0;
}

.ns-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.ns-search:focus-within {
  border-color: var(--border2);
  box-shadow: var(--focusRing), var(--shadow-md);
}

.ns-clear {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.ns-clear:hover {
  transform: translateY(-1px);
  border-color: var(--border2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.ns-clear:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ns-clear svg {
  width: 18px;
  height: 18px;
}

/* Filters */
.ns-filters {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ns-filtergroup h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.ns-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ns-chip {
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 700;
  color: #2a2a2a;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease;
}

.ns-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.07);
}

.ns-chip[aria-pressed="true"] {
  background: var(--accentSoft);
  border-color: rgba(31, 94, 59, 0.35);
  color: var(--accent);
}

.ns-statsrow {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.ns-stats {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Sections ---------- */
.ns-sectionhead {
  margin: 16px 0 10px;
}

.ns-sectionhead h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.ns-sectionhead p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Featured */
.ns-featuredwrap {
  margin-top: 18px;
}

.ns-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Grid */
.ns-gridwrap {
  margin-top: 18px;
}

.ns-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* ---------- Card ---------- */
.ns-card {
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ns-card:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
  box-shadow: var(--shadow-lg);
}

/* WICHTIG: weniger “langgezogen”
   -> 4:3 + max-height = wirkt wie Foto-Preview statt Banner */
.ns-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 220px;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  background: #111;
}

.ns-card__imglink {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ns-card__imglink:focus-visible {
  outline: 3px solid rgba(31, 94, 59, 0.45);
  outline-offset: -3px;
}

.ns-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ns-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.ns-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(31, 94, 59, 0.1);
  border: 1px solid rgba(31, 94, 59, 0.18);
}

.ns-card h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ns-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ns-read {
  margin-top: 4px;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
}

.ns-morewrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.ns-more {
  min-width: 180px;
}

.ns-empty {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.ns-empty h3 {
  margin: 0 0 6px;
}

.ns-empty p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ns-hero {
    grid-template-columns: 1fr;
  }

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

  .ns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .ns-filters {
    grid-template-columns: 1fr;
  }

  /* auf Handy minimal “breiter”, aber nicht Banner */
  .ns-card__img {
    aspect-ratio: 16 / 10;
    max-height: 210px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ns-btn,
  .ns-chip,
  .ns-card,
  .ns-clear {
    transition: none !important;
  }

  .ns-btn:hover,
  .ns-chip:hover,
  .ns-card:hover,
  .ns-clear:hover {
    transform: none !important;
  }
}


/* ===============================
   Subpages Premium Pass: Naturschutz
================================ */
.ns-page {
  background:
    radial-gradient(circle at 14% 0%, rgba(6,71,4,.055), transparent 32rem),
    linear-gradient(180deg, #f4f0e7 0%, #efeade 100%);
}

.ns-intro {
  width: min(1120px, calc(100% - 44px));
  margin: clamp(38px, 5vw, 70px) auto 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .56fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(20,25,20,.13);
}

.ns-kicker {
  margin: 0 0 12px;
  color: #064704;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ns-intro h2 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.25rem, 5vw, 5.1rem);
  line-height: .94;
  letter-spacing: -.065em;
  color: #141914;
}

.ns-intro p:not(.ns-kicker) {
  margin: 22px 0 0;
  max-width: 760px;
  color: #62675f;
  font-size: clamp(1.06rem, 1.32vw, 1.22rem);
  line-height: 1.75;
}

.ns-quicklinks {
  display: grid;
  gap: 1px;
  background: rgba(20,25,20,.13);
  border: 1px solid rgba(20,25,20,.13);
}

.ns-quicklinks a {
  min-height: 92px;
  padding: 20px;
  background: #fffdf8;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ns-quicklinks a:hover {
  background: #fff;
}

.ns-quicklinks span {
  color: #064704;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ns-quicklinks strong {
  margin-top: 6px;
  font-size: 1.18rem;
  letter-spacing: -.03em;
}

.ns-panel,
.ns-featuredwrap,
.ns-gridwrap {
  box-shadow: none !important;
  border-radius: 0 !important;
}

.ns-sectionhead h2 {
  letter-spacing: -.055em;
}

.ns-card,
.ns-featured-card {
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .ns-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ns-intro {
    width: min(100% - 28px, 1120px);
  }
}

/* ===============================
   Public cleanup pass: Naturschutz as project page
================================ */
.ns-page {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(circle at 12% 0%, rgba(6,71,4,.05), transparent 30rem),
    linear-gradient(180deg, #f4f0e7 0%, #efeade 58%, #f4f0e7 100%);
}

.ns-intro,
.ns-focus,
.ns-public,
.ns-stories {
  width: min(1120px, calc(100% - 44px));
  margin-inline: auto;
}

.ns-intro {
  margin-top: clamp(34px, 5vw, 68px);
  margin-bottom: 0;
}

.ns-sectionhead--large {
  margin: 0 0 clamp(22px, 3vw, 34px);
}

.ns-sectionhead--large h2,
.ns-public h2 {
  margin: 0;
  max-width: 760px;
  color: #141914;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.ns-sectionhead--large p:not(.ns-kicker),
.ns-public p {
  max-width: 720px;
  color: #62675f;
  font-size: 1.06rem;
  line-height: 1.72;
}

.ns-focus {
  margin-top: clamp(46px, 6vw, 82px);
}

.ns-focus-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr .85fr;
  gap: 1px;
  background: rgba(20,25,20,.14);
  border: 1px solid rgba(20,25,20,.14);
}

.ns-focus-card {
  min-height: 330px;
  padding: clamp(24px, 3.4vw, 38px);
  background: rgba(255,253,248,.94);
  color: #141914;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ns-focus-card--image {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: #fff;
}

.ns-focus-card--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-focus-card--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(5,15,7,.82));
}

.ns-focus-card--image > div {
  position: relative;
  z-index: 1;
}

.ns-focus-card span,
.ns-story__meta {
  color: #064704;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ns-focus-card--image span {
  color: rgba(255,255,255,.78);
}

.ns-focus-card h3 {
  margin: 10px 0 0;
  font-size: clamp(1.55rem, 2.5vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.ns-focus-card p {
  margin: 14px 0 0;
  color: #62675f;
  line-height: 1.68;
}

.ns-focus-card--image p {
  color: rgba(255,255,255,.82);
}

.ns-focus-card a,
.ns-public-links a,
.ns-story__read {
  color: #064704;
  font-weight: 900;
  text-decoration: none;
}

.ns-focus-card a {
  margin-top: 22px;
}

.ns-focus-card--image a {
  color: #fff;
}

.ns-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.ns-public {
  margin-top: clamp(54px, 7vw, 96px);
  padding: clamp(30px, 4vw, 46px) 0;
  display: grid;
  grid-template-columns: minmax(260px, .84fr) minmax(0, 1.16fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  border-top: 1px solid rgba(20,25,20,.13);
  border-bottom: 1px solid rgba(20,25,20,.13);
}

.ns-public-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(20,25,20,.14);
  border: 1px solid rgba(20,25,20,.14);
}

.ns-public-links a {
  min-height: 92px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,253,248,.92);
}

.ns-public-links span {
  margin-top: 6px;
  color: #62675f;
  font-weight: 650;
}

.ns-stories {
  margin-top: clamp(54px, 7vw, 88px);
}

.ns-blog-tools {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(260px, .92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: end;
}

.ns-blog-search {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  background: rgba(255,253,248,.92);
  border: 1px solid rgba(20,25,20,.14);
}

.ns-blog-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #141914;
  font: inherit;
  font-weight: 750;
}

.ns-blog-search button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #064704;
  font-size: 1.45rem;
  cursor: pointer;
}

.ns-blog-search button:disabled {
  opacity: .35;
  cursor: default;
}

.ns-blog-tools__label {
  margin: 0 0 8px;
  color: #62675f;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ns-blog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ns-blog-chip {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(6,71,4,.24);
  background: rgba(255,253,248,.72);
  color: #064704;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.ns-blog-chip[aria-pressed="true"] {
  background: #064704;
  border-color: #064704;
  color: #fff;
}

.ns-blog-stats {
  margin: 0 0 14px;
  color: #62675f;
  font-weight: 750;
}

.ns-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(20,25,20,.14);
  border: 1px solid rgba(20,25,20,.14);
}

.ns-story {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: #141914;
  background: rgba(255,253,248,.95);
  text-decoration: none;
}

.ns-story--lead {
  grid-column: span 2;
}

.ns-story__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #172018;
}

.ns-story--lead .ns-story__image {
  aspect-ratio: 16 / 8.2;
}

.ns-story__body {
  padding: clamp(20px, 3vw, 30px);
}

.ns-story__meta {
  margin: 0 0 12px;
}

.ns-story h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2.1vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.ns-story__excerpt {
  margin: 14px 0 0;
  color: #62675f;
  line-height: 1.65;
}

.ns-story__read {
  display: inline-flex;
  margin-top: 20px;
}

.ns-blog-search:focus-within,
.ns-blog-chip:focus-visible,
.ns-story:focus-visible {
  outline: 3px solid rgba(6,71,4,.26);
  outline-offset: 3px;
}

.ns-story:hover h3,
.ns-public-links a:hover strong,
.ns-focus-card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ns-empty {
  margin-top: 0;
  border-radius: 0;
  background: rgba(255,253,248,.92);
}

@media (max-width: 980px) {
  .ns-focus-grid,
  .ns-public,
  .ns-blog-tools,
  .ns-story-grid {
    grid-template-columns: 1fr;
  }

  .ns-story--lead {
    grid-column: auto;
  }

  .ns-story--lead .ns-story__image {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 680px) {
  .ns-intro,
  .ns-focus,
  .ns-public,
  .ns-stories {
    width: min(100% - 28px, 1120px);
  }

  .ns-intro h2,
  .ns-sectionhead--large h2,
  .ns-public h2 {
    font-size: clamp(1.95rem, 10vw, 3rem);
    line-height: 1.02;
    letter-spacing: -.04em;
  }

  .ns-quicklinks,
  .ns-public-links {
    grid-template-columns: 1fr;
  }

  .ns-focus-card,
  .ns-focus-card--image {
    min-height: 260px;
  }
}
