/* ============ NEWS & PROJEKTE ============ */
.np-hero .ab-hero-media img { object-position: 62% center; }
.np-hero .sw-hero-btns .btn-outline { background: rgba(255,255,255,.9); }

/* News-Karten */
.np-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.np-card .sw-card-img { position: relative; aspect-ratio: 4 / 3; }
.np-card .sw-card-img img { object-fit: cover; }
.np-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); color: #1a4480; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 5px 10px 5px 8px; border-radius: 99px; box-shadow: 0 2px 8px rgba(11,45,75,.12); }
.np-tag .icon { width: 14px; height: 14px; color: var(--blue); }
.np-card h3 { font-size: 1.0625rem; line-height: 1.3; color: #1a4480; margin: 0 0 8px; }
.np-card .link-arrow { display: inline-flex; align-items: center; gap: 6px; }

/* Projekt-Karten */
.pj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pj-card { display: grid; grid-template-columns: 42% 1fr; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.pj-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pj-img { position: relative; min-height: 100%; background: #f3f7fa; }
.pj-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-body { padding: 20px 22px 22px; display: flex; flex-direction: column; }
.pj-branche { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.pj-branche .icon { width: 16px; height: 16px; }
.pj-body h3 { font-size: 1.0625rem; line-height: 1.3; color: #1a4480; margin: 0 0 12px; }
.pj-dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .875rem; line-height: 1.5; }
.pj-dl dt { font-weight: 700; color: var(--navy); }
.pj-dl dd { margin: 0; color: var(--text); }
.pj-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pj-chips li { font-size: .75rem; font-weight: 600; color: #1a4480; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; }
.pj-body .link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; }

/* Mitmachen / Folgen */
.np-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.np-box { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--bg-soft); }
.np-box h3 { font-size: 1.25rem; color: #1a4480; margin: 14px 0 8px; }
.np-box p { color: var(--text); line-height: 1.6; margin: 0 0 18px; }
.np-box-blue { background: linear-gradient(135deg, #0070c0, #005a9c); border-color: transparent; }
.np-box-blue h3, .np-box-blue p { color: #fff; }
.np-box-blue .sw-ic { background: rgba(255,255,255,.16); color: #fff; }
.np-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.np-btns .btn { display: inline-flex; align-items: center; gap: 8px; }
.np-btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.np-btn-ghost:hover { background: #25d366; border-color: #25d366; }
.np-btn-ghost .icon { width: 18px; height: 18px; }
.np-social { display: flex; flex-wrap: wrap; gap: 12px; }
.np-soc { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); transition: border-color .2s, box-shadow .2s; }
.np-soc .icon { width: 40px; height: 40px; padding: 9px; border-radius: 9px; background: var(--navy); color: #fff; transition: background .2s; }
.np-soc span { display: flex; flex-direction: column; font-size: .8125rem; color: var(--muted); }
.np-soc strong { font-size: .9375rem; color: var(--navy); }
.np-soc:hover { box-shadow: var(--shadow); }
.np-ig:hover .icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.np-yt:hover .icon { background: #ff0000; }

@media (max-width: 1100px) {
  .np-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .np-grid { grid-template-columns: 1fr; }
  .pj-card { grid-template-columns: 1fr; }
  .pj-img { aspect-ratio: 16 / 9; min-height: 0; }
  .np-duo { grid-template-columns: 1fr; }
  .np-box { padding: 22px; }
}

/* Weitere Projekte (aufklappbar) */
.pj-more { margin-top: 24px; display: flex; flex-direction: column; }
.pj-more > .pj-grid { margin-top: 24px; }
.pj-more summary { order: 2; list-style: none; cursor: pointer; align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 1.5px solid var(--blue); border-radius: 10px; background: #fff; color: var(--blue); font-weight: 700; font-size: .9375rem; transition: background .2s; }
.pj-more:not([open]) summary { margin-top: 0; }
.pj-more[open] summary { margin-top: 24px; }
.pj-more summary:hover { background: var(--bg-soft); }
.pj-more summary::-webkit-details-marker { display: none; }
.pj-more summary .icon { width: 16px; height: 16px; transition: transform .2s; }
.pj-more[open] summary .icon { transform: rotate(180deg); }
.pj-more .pj-more-c, .pj-more[open] .pj-more-o { display: none; }
.pj-more[open] .pj-more-c { display: inline; }
.pj-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #e9eef2; }

/* Projekt mit mehreren Bildern: automatische Überblendung (4 s pro Bild) */
.pj-slides { position: absolute; inset: 0; }
.pj-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: pj-fade calc(var(--n) * 4s) infinite; animation-delay: calc((var(--i) - var(--n)) * 4s); }
@keyframes pj-fade { 0% { opacity: 1; } 30% { opacity: 1; } 33.4% { opacity: 0; } 96% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pj-slides img { animation: none; } .pj-slides img:first-child { opacity: 1; } }

/* «Immer auf dem Laufenden» – Social-Karten in Markenfarben */
.np-follow { background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.np-follow .np-social { flex-direction: column; gap: 10px; margin-top: auto; }
.np-follow .np-soc { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.np-follow .np-soc:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: transparent; }
.np-soc-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.np-follow .np-soc .np-soc-ic .icon { width: 24px; height: 24px; padding: 0; background: none; border-radius: 0; }
.np-ig .np-soc-ic { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.np-yt .np-soc-ic { background: #ff0000; }
.np-wa .np-soc-ic { background: #25d366; }
.np-follow .np-ig:hover .icon, .np-follow .np-yt:hover .icon { background: none; }
.np-soc-t { display: flex; flex-direction: column; min-width: 0; }
.np-soc-t strong { font-size: 1rem; color: var(--navy); }
.np-soc-t span { font-size: .8125rem; color: var(--muted); }
.np-soc-go { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.np-soc-go .icon { width: 14px; height: 14px; transition: transform .2s; }
.np-soc:hover .np-soc-go .icon { transform: translateX(3px); }
.np-ig:hover .np-soc-go { color: #d6249f; } .np-yt:hover .np-soc-go { color: #e00000; } .np-wa:hover .np-soc-go { color: #1da851; }
@media (max-width: 480px) { .np-soc-go { font-size: 0; gap: 0; } .np-soc-go .icon { width: 18px; height: 18px; } }
/* Korrekturen gegenüber den älteren .np-soc-Regeln */
.np-follow .np-soc span.np-soc-ic { display: grid; flex-direction: initial; }
.np-follow .np-soc span.np-soc-go { display: inline-flex; flex-direction: row; color: var(--blue); font-size: .8125rem; }
.np-follow .np-soc span.np-soc-t { display: flex; flex-direction: column; font-size: inherit; }
.np-follow .np-soc span.np-soc-t > span { font-size: .8125rem; color: var(--muted); }
.np-follow .np-soc .np-soc-go .icon { width: 14px; height: 14px; padding: 0; background: none; color: currentColor; border-radius: 0; }
.np-follow .np-ig:hover .np-soc-go { color: #d6249f; } .np-follow .np-yt:hover .np-soc-go { color: #e00000; } .np-follow .np-wa:hover .np-soc-go { color: #1da851; }
.np-box-blue { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 480px) { .np-follow .np-soc span.np-soc-go { font-size: 0; gap: 0; } .np-follow .np-soc .np-soc-go .icon { width: 18px; height: 18px; } }
.np-btn-wa .icon { width: 18px; height: 18px; color: #25d366; }
.np-btn-wa:hover { background: #25d366; color: #fff; } .np-btn-wa:hover .icon { color: #fff; }

.pj-card[id], .np-card[id] { scroll-margin-top: 110px; }
/* Alle Projektkarten gleich hoch */
.pj-grid { grid-auto-rows: 1fr; }
.pj-card { height: 100%; min-height: 480px; }
@media (max-width: 760px) { .pj-card { min-height: 0; } }
.pj-img { min-height: 360px; }
@media (max-width: 760px) { .pj-grid { grid-auto-rows: auto; } .pj-img { min-height: 0; aspect-ratio: 4 / 3; } .pj-img:has(video) { aspect-ratio: 3 / 4; max-height: 520px; } }
