/* ================================
   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);
  }
}
