/*
Theme Name: Agrarnetz Stage
Template: picostrap5
Version: 0.2.2
Description: Responsive staging child theme for agrarnetz.com.
*/

:root {
  --agr-bg: #f4f5ef;
  --agr-bg-soft: #eef1e8;
  --agr-surface: #ffffff;
  --agr-surface-soft: #f8f9f5;
  --agr-ink: #243027;
  --agr-muted: #61705f;
  --agr-line: #d6ddcf;
  --agr-brand: #4d7d18;
  --agr-brand-dark: #35570e;
  --agr-brand-soft: #dde8c8;
  --agr-accent: #c58c27;
  --agr-shadow: 0 10px 24px rgba(36, 48, 39, 0.06);
  --agr-shadow-soft: 0 4px 12px rgba(36, 48, 39, 0.04);
  --agr-radius: 12px;
  --agr-content-width: 1180px;
}

body.agrarnetz-stage-body {
  background: linear-gradient(180deg, #f6f7f2 0%, #eef2ea 100%);
  color: var(--agr-ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--agr-brand-dark);
}

a:hover {
  color: var(--agr-brand);
}

.agr-shell {
  width: min(calc(100% - 2rem), var(--agr-content-width));
  margin: 0 auto;
}

.agr-site-header {
  position: static;
  background: #f7f8f3;
  border-bottom: 1px solid rgba(77, 125, 24, 0.12);
}

.agr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.85rem;
}

.agr-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.agr-brand img {
  width: auto;
  max-height: 56px;
  display: block;
}

.agr-search {
  flex: 0 1 320px;
}

.agr-search form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--agr-surface);
  border: 1px solid var(--agr-line);
  border-radius: 10px;
  padding: 0.35rem 0.4rem 0.35rem 0.8rem;
}

.agr-search input[type="search"] {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--agr-ink);
  outline: none;
}

.agr-search button {
  border: 0;
  background: var(--agr-brand);
  color: #fff;
  border-radius: 8px;
  padding: 0.7rem 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.agr-primary-nav {
  padding: 0 0 1rem;
}

.agr-primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.agr-primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  color: var(--agr-brand-dark);
}

.agr-primary-nav li.current-menu-item a,
.agr-primary-nav a:hover {
  background: var(--agr-surface);
  border-color: var(--agr-line);
  color: var(--agr-brand-dark);
}

.agr-main {
  padding: 1.75rem 0 4rem;
}

.agr-grid {
  display: grid;
  gap: 1.25rem;
}

.agr-grid-main {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.agr-grid-main--full {
  grid-template-columns: minmax(0, 1fr);
}

.agr-hero,
.agr-card,
.agr-sidebar-box,
.agr-article-shell,
.agr-slot {
  background: var(--agr-surface);
  border: 1px solid rgba(77, 125, 24, 0.1);
  border-radius: var(--agr-radius);
  box-shadow: var(--agr-shadow);
}

.agr-hero {
  overflow: hidden;
}

.agr-hero-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.agr-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
  min-height: 410px;
}

.agr-hero-media {
  min-height: 100%;
  background: #dbe4d3;
  overflow: hidden;
}

.agr-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 240ms ease;
}

.agr-hero-copy-shell {
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(221, 232, 200, 0.62) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.agr-hero-copy {
  align-self: end;
  padding: 2rem;
  max-width: 26rem;
}

.agr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: var(--agr-brand-soft);
  color: var(--agr-brand-dark);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.agr-hero h1,
.agr-article-main h1 {
  margin: 0.9rem 0 0.6rem;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
}

.agr-hero p,
.agr-article-lead {
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 42rem;
  color: var(--agr-muted);
}

.agr-button,
.agr-card-linktext {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0;
  color: var(--agr-brand-dark);
  text-decoration: none;
  font-weight: 700;
}

.agr-hero-link:hover .agr-hero-media img,
.agr-hero-link:focus-visible .agr-hero-media img {
  transform: scale(1.035);
}

.agr-hero-link:hover .agr-button,
.agr-hero-link:focus-visible .agr-button {
  color: var(--agr-brand);
}

.agr-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.agr-card h2,
.agr-card h3,
.agr-post-card h3,
.agr-sidebar-box h2,
.agr-sidebar-box h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.agr-card p,
.agr-post-card p,
.agr-sidebar-box p,
.agr-sidebar-box li {
  color: var(--agr-muted);
  line-height: 1.6;
}

.agr-section-head {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.agr-section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.agr-section-head p {
  margin: 0;
  color: var(--agr-muted);
}

.agr-sidebar-stack {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.agr-sidebar-box {
  padding: 0.85rem 1rem;
}

.agr-sidebar-box--links {
  padding: 0.7rem 0.85rem;
}

.agr-sidebar-box ul {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.agr-sidebar-box li a {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  border-radius: 8px;
  background: var(--agr-surface-soft);
  border: 1px solid var(--agr-line);
  text-decoration: none;
}

.agr-list-title {
  font-weight: 700;
  color: var(--agr-brand-dark);
}

.agr-list-excerpt {
  color: var(--agr-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.agr-article-shell {
  padding: 1.25rem;
}

.agr-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
}

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

.agr-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--agr-muted);
  font-size: 0.92rem;
}

.agr-article-content {
  color: var(--agr-ink);
  line-height: 1.8;
  font-size: 1rem;
}

.agr-article-content h2,
.agr-article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}

.agr-article-content img {
  max-width: 100%;
  height: auto;
}

.agr-post-feed,
.agr-topic-posts {
  margin-top: 1.3rem;
}

.agr-post-feed .agr-section-head {
  margin-top: 0.2rem;
  margin-bottom: 1.35rem;
}

.agr-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.agr-pagination-item {
  display: inline-flex;
}

.agr-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: var(--agr-surface);
  border: 1px solid var(--agr-line);
  color: var(--agr-brand-dark);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--agr-shadow-soft);
}

.agr-pagination .page-numbers.current {
  background: var(--agr-brand);
  border-color: var(--agr-brand);
  color: #fff;
}

.agr-pagination .page-numbers:hover {
  border-color: var(--agr-brand);
  color: var(--agr-brand-dark);
}

.agr-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.agr-post-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: var(--agr-brand-soft);
  color: var(--agr-brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.agr-entry-card {
  min-height: 100%;
  border: 1px solid rgba(77, 125, 24, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: var(--agr-surface);
  box-shadow: 0 14px 26px rgba(36, 48, 39, 0.08);
}

.agr-entry-card--topic {
  min-height: 100%;
}

.agr-entry-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease;
}

.agr-entry-card-media-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbe4d3;
}

.agr-entry-card-media {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.001);
  transition: transform 240ms ease;
}

.agr-entry-card-media--placeholder {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(221, 232, 200, 0.45), transparent 44%),
    linear-gradient(135deg, #5f7e3d 0%, #2d431b 100%);
}

.agr-entry-card-body {
  display: grid;
  gap: 0.55rem;
  flex: 1 1 auto;
  padding: 1rem 1.05rem 1.05rem;
  background: var(--agr-surface);
}

.agr-entry-card-chip {
  width: max-content;
  margin-bottom: 0;
  background: var(--agr-brand-soft);
  color: var(--agr-brand-dark);
}

.agr-entry-card-title {
  display: block;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.18;
  font-weight: 800;
  color: var(--agr-ink);
  text-wrap: balance;
}

.agr-entry-card-text {
  display: block;
  color: var(--agr-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.agr-entry-card-cta {
  display: inline-flex;
  align-items: center;
  color: var(--agr-brand-dark);
  font-weight: 700;
  font-size: 0.93rem;
  gap: 0.35rem;
}

.agr-entry-card-cta::after {
  content: "->";
  transition: transform 180ms ease;
}

.agr-entry-card-placeholder {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.agr-entry-card-link:hover .agr-entry-card-media,
.agr-entry-card-link:focus-visible .agr-entry-card-media {
  transform: scale(1.045);
}

.agr-entry-card-link:hover .agr-entry-card-cta::after,
.agr-entry-card-link:focus-visible .agr-entry-card-cta::after {
  transform: translateX(3px);
}

.agr-entry-card-link:focus-visible {
  outline: 3px solid rgba(197, 140, 39, 0.45);
  outline-offset: 0;
}

.agr-compact-card-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 0;
}

.agr-entry-card--compact,
.agr-entry-card--sidebar {
  min-height: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  background: var(--agr-surface);
}

.agr-entry-card--sidebar .agr-entry-card-link,
.agr-entry-card--compact .agr-entry-card-link {
  padding: 0.15rem 0;
}

.agr-entry-card--sidebar .agr-entry-card-link:hover,
.agr-entry-card--compact .agr-entry-card-link:hover,
.agr-entry-card--sidebar .agr-entry-card-link:focus-visible,
.agr-entry-card--compact .agr-entry-card-link:focus-visible {
  transform: translateX(3px);
}

.agr-entry-card--sidebar .agr-entry-card-body,
.agr-entry-card--compact .agr-entry-card-body {
  gap: 0.12rem;
  padding: 0.55rem 0.1rem 0.5rem;
  background: var(--agr-surface);
}

.agr-entry-card--sidebar .agr-entry-card-title,
.agr-entry-card--compact .agr-entry-card-title {
  font-size: 1.02rem;
}

.agr-entry-card--sidebar .agr-entry-card-text,
.agr-entry-card--compact .agr-entry-card-text {
  font-size: 0.88rem;
  line-height: 1.45;
}

.agr-entry-card--sidebar .agr-entry-card-cta,
.agr-entry-card--compact .agr-entry-card-cta {
  font-size: 0.86rem;
}

.agr-slot {
  padding: 0.9rem;
  overflow: hidden;
}

.agr-slot img {
  max-width: 100%;
  height: auto;
  display: block;
}

.agr-slot-rightspace img,
.agr-slot-home-rightspace img,
.agr-slot-below_title img,
.agr-slot-below_content img {
  width: 100%;
}

.agr-sidebar-box .agr-slot {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.agr-slot-sidebar_featured a {
  display: block;
  text-decoration: none;
  padding: 0.55rem 0.1rem 0.5rem;
  border-radius: 10px;
  background: var(--agr-surface);
  border: 0;
  color: inherit;
  transition: transform 180ms ease;
}

.agr-slot-sidebar_featured .content {
  display: grid;
  gap: 0.12rem;
}

.agr-slot-sidebar_featured .header {
  color: var(--agr-ink);
  font-weight: 700;
  line-height: 1.3;
}

.agr-slot-sidebar_featured a:hover,
.agr-slot-sidebar_featured a:focus-visible {
  transform: translateX(3px);
}

.agr-slot-sidebar_featured .content,
.agr-slot-sidebar_featured .content * {
  color: var(--agr-muted);
  line-height: 1.45;
}

.agr-slot-sidebar_featured .content .header {
  color: var(--agr-ink);
}

.agr-slot-sidebar_featured .content::after {
  content: "Mehr erfahren ->";
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--agr-brand-dark);
  font-size: 0.86rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.agr-slot + .agr-slot {
  margin-top: 1rem;
}

.agr-article-main .agr-slot,
.agr-article-content .agr-slot {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.agr-article-main .agr-slot + .agr-slot,
.agr-article-content .agr-slot + .agr-slot {
  margin-top: 0.9rem;
}

.agr-footer {
  padding: 2.5rem 0 2.5rem;
  color: var(--agr-muted);
  border-top: 1px solid rgba(77, 125, 24, 0.12);
}

.agr-footer-columns {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  padding-bottom: 1.5rem;
  align-items: start;
}

.agr-footer-column {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.agr-footer-column h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--agr-brand-dark);
}

.agr-footer-column p {
  margin: 0;
  max-width: 22rem;
}

.agr-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.agr-footer-list a {
  color: var(--agr-muted);
  text-decoration: none;
}

.agr-footer-list a:hover {
  color: var(--agr-brand-dark);
}

.agr-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(77, 125, 24, 0.12);
}

.agr-footer-meta-links {
  display: flex;
  gap: 1rem;
}

.agr-archive-shell {
  display: grid;
  gap: 1rem;
}

.agr-empty-state {
  padding: 1.2rem;
  border: 1px solid var(--agr-line);
  border-radius: 12px;
  background: var(--agr-surface);
}

.agr-legal-shell {
  width: min(calc(100% - 2rem), 960px);
  margin: 0 auto;
}

.agr-legal-copy img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1080px) {
  .agr-grid-main,
  .agr-article-grid,
  .agr-hero-inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .agr-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .agr-search {
    flex-basis: auto;
  }

  .agr-card-grid,
  .agr-post-grid,
  .agr-sidebar-stack {
    grid-template-columns: 1fr;
  }

  .agr-hero-copy {
    padding: 1.35rem;
  }

  .agr-hero h1,
  .agr-article-main h1 {
    font-size: 2rem;
  }

  .agr-footer-columns {
    grid-template-columns: 1fr;
  }

  .agr-footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
