/* noname-community.de — prefix: nnc- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --nnc-green: #82ba28;
  --nnc-lime: #c2ff3c;
  --nnc-bg: #f0f4f8;
  --nnc-white: #ffffff;
  --nnc-text: #1a1a1a;
  --nnc-muted: #6b7280;
  --nnc-shadow: 0 1px 4px rgba(0,0,0,.1);
  --nnc-radius: 6px;
  --nnc-max: 1100px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--nnc-bg);
  color: var(--nnc-text);
  line-height: 1.65;
}

/* ── NAV ── */
.nnc-nav { background: var(--nnc-green); }

.nnc-nav-inner {
  max-width: var(--nnc-max);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nnc-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.nnc-logo img { height: 34px; width: auto; }

.nnc-nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nnc-nav-links a {
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: .9rem;
}
.nnc-nav-links a:hover { color: #fff; text-decoration: underline; }

.nnc-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.nnc-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 1px;
}

.nnc-mobile-menu {
  display: none;
  background: var(--nnc-lime);
  padding: .6rem 1rem .8rem;
}
.nnc-mobile-menu.open { display: block; }
.nnc-mobile-menu a {
  display: block;
  padding: .45rem 0;
  color: #1a1a1a;
  text-decoration: none;
  font-size: .95rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nnc-mobile-menu a:last-child { border-bottom: none; }

/* sub-bar */
.nnc-subnav { background: var(--nnc-lime); }
.nnc-subnav-inner {
  max-width: var(--nnc-max);
  margin: 0 auto;
  padding: .3rem 1rem;
  font-size: .8rem;
  color: #1a1a1a;
}
.nnc-subnav-inner a { color: #1a1a1a; }

/* ── MAIN ── */
.nnc-main {
  max-width: var(--nnc-max);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* ── HERO ── */
.nnc-hero {
  background: var(--nnc-green);
  color: #fff;
  border-radius: var(--nnc-radius);
  padding: 2.5rem 2rem;
  margin-bottom: 2.25rem;
}
.nnc-hero h1 { font-size: 1.9rem; margin-bottom: .6rem; line-height: 1.25; }
.nnc-hero p { font-size: 1rem; opacity: .9; max-width: 620px; line-height: 1.6; }

/* ── SECTION HEADING ── */
.nnc-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  border-left: 4px solid var(--nnc-green);
  padding-left: .75rem;
}

.nnc-more-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--nnc-green);
  font-weight: 600;
  text-decoration: none;
  font-size: .9rem;
}
.nnc-more-link:hover { text-decoration: underline; }

/* ── PREVIEW GRID (4 cards, homepage) ── */
.nnc-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: .5rem;
}

/* ── BLOG LISTING ── */
.nnc-blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ── CARD (preview, vertical) ── */
.nnc-card {
  background: var(--nnc-white);
  border-radius: var(--nnc-radius);
  box-shadow: var(--nnc-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s;
}
.nnc-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.nnc-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.nnc-card-body {
  padding: .875rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.nnc-card-cat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--nnc-green);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .3rem;
}
.nnc-card-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .4rem;
}
.nnc-card-excerpt {
  font-size: .82rem;
  color: var(--nnc-muted);
  flex: 1;
  line-height: 1.5;
}
.nnc-card-meta {
  font-size: .72rem;
  color: var(--nnc-muted);
  margin-top: .6rem;
}

/* ── LIST CARD (blog listing, horizontal) ── */
.nnc-list-card {
  background: var(--nnc-white);
  border-radius: var(--nnc-radius);
  box-shadow: var(--nnc-shadow);
  overflow: hidden;
  display: flex;
  transition: box-shadow .15s;
}
.nnc-list-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.nnc-list-card img {
  width: 220px;
  min-height: 148px;
  object-fit: cover;
  flex-shrink: 0;
}
.nnc-list-card-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nnc-list-card-cat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--nnc-green);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .25rem;
}
.nnc-list-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .35rem;
  line-height: 1.3;
}
.nnc-list-card-title a { text-decoration: none; color: inherit; }
.nnc-list-card-title a:hover { color: var(--nnc-green); }
.nnc-list-card-excerpt {
  font-size: .875rem;
  color: var(--nnc-muted);
  margin-bottom: .4rem;
  line-height: 1.5;
}
.nnc-list-card-meta { font-size: .75rem; color: var(--nnc-muted); }

/* ── ARTICLE ── */
.nnc-article-header { margin-bottom: 1.5rem; }

.nnc-breadcrumb {
  font-size: .8rem;
  color: var(--nnc-muted);
  margin-bottom: .75rem;
}
.nnc-breadcrumb a { color: var(--nnc-green); text-decoration: none; }
.nnc-breadcrumb a:hover { text-decoration: underline; }

.nnc-article-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .6rem;
}
.nnc-article-meta { font-size: .8rem; color: var(--nnc-muted); margin-bottom: 1rem; }

.nnc-article-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--nnc-radius);
  margin-bottom: 1.75rem;
  display: block;
}

.nnc-article-body { max-width: 740px; }

.nnc-article-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 .55rem;
  color: #111;
}
.nnc-article-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.72;
}
.nnc-article-body ul,
.nnc-article-body ol {
  margin: .4rem 0 1rem 1.5rem;
}
.nnc-article-body li {
  margin-bottom: .35rem;
  line-height: 1.62;
  font-size: 1rem;
}
.nnc-article-body a { color: var(--nnc-green); }
.nnc-article-body a:hover { text-decoration: underline; }

.nnc-back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--nnc-green);
  font-size: .9rem;
  text-decoration: none;
  font-weight: 600;
}
.nnc-back-link:hover { text-decoration: underline; }

/* ── PROSE (static pages) ── */
.nnc-prose { max-width: 740px; }
.nnc-prose h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.nnc-prose h2 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.nnc-prose p { margin-bottom: .9rem; line-height: 1.7; font-size: 1rem; }

/* ── FOOTER ── */
.nnc-footer { background: var(--nnc-green); color: #fff; margin-top: 3rem; }
.nnc-footer-inner {
  max-width: var(--nnc-max);
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .85rem;
}
.nnc-footer-links { display: flex; gap: 1.5rem; }
.nnc-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.nnc-footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nnc-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nnc-nav-links { display: none; }
  .nnc-hamburger { display: block; }
  .nnc-preview-grid { grid-template-columns: 1fr; }
  .nnc-list-card { flex-direction: column; }
  .nnc-list-card img { width: 100%; min-height: 180px; }
  .nnc-hero h1 { font-size: 1.45rem; }
  .nnc-article-title { font-size: 1.4rem; }
  .nnc-main { padding: 1.25rem 1rem 2rem; }
}
