/* NOE Reitsport – Components */

/* ========== HEADER ========== */
.nps-header {
  background: #fff;
  border-bottom: 3px solid var(--nps-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.nps-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.nps-logo a { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.nps-logo-img { height: 52px; width: auto; }
.nps-logo-text { font-family: var(--nps-font-head); font-size: 1.25rem; font-weight: 700; color: var(--nps-dark); line-height: 1.15; }
.nps-logo-text span { display: block; font-size: .75rem; font-weight: 400; color: var(--nps-text-muted); font-family: var(--nps-font-body); }

/* Nav */
.nps-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; align-items: center; }
.nps-nav ul li a {
  display: block;
  padding: 9px 16px;
  border-radius: var(--nps-radius-sm);
  font-weight: 600;
  font-size: .93rem;
  color: var(--nps-dark);
  transition: var(--nps-transition);
  white-space: nowrap;
}
.nps-nav ul li a:hover,
.nps-nav ul li.current-menu-item > a,
.nps-nav ul li.current-page-ancestor > a {
  background: var(--nps-primary);
  color: #fff;
  text-decoration: none;
}
.nps-nav ul li.nps-nav-cta > a {
  background: var(--nps-accent);
  color: var(--nps-dark) !important;
}
.nps-nav ul li.nps-nav-cta > a:hover { background: var(--nps-secondary); color: #fff !important; }

/* Mobile toggle */
.nps-menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--nps-primary);
  border-radius: var(--nps-radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--nps-primary);
  font-size: 1.2rem;
  line-height: 1;
}

/* ========== HERO ========== */
.nps-hero {
  background: linear-gradient(145deg, var(--nps-dark) 0%, var(--nps-primary) 60%, var(--nps-primary-light) 100%);
  padding: 80px 0 72px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.nps-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/themes/noe-reitsport-theme/assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: .18;
}
.nps-hero-inner { position: relative; z-index: 2; max-width: 700px; }
.nps-hero-badge {
  display: inline-block;
  background: var(--nps-accent);
  color: var(--nps-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.nps-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .5em; }
.nps-hero-lead { font-size: 1.1rem; color: rgba(255,255,255,.88); margin-bottom: 28px; max-width: 580px; }
.nps-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.nps-btn-hero-primary {
  background: var(--nps-accent);
  color: var(--nps-dark) !important;
  padding: 14px 32px;
  border-radius: var(--nps-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--nps-transition);
  text-decoration: none !important;
  border: 2px solid var(--nps-accent);
}
.nps-btn-hero-primary:hover { background: var(--nps-secondary); border-color: var(--nps-secondary); color: #fff !important; transform: translateY(-2px); }
.nps-btn-hero-outline {
  background: transparent;
  color: #fff !important;
  padding: 14px 32px;
  border-radius: var(--nps-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.6);
  transition: var(--nps-transition);
  text-decoration: none !important;
}
.nps-btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Stats strip */
.nps-stats-strip {
  background: var(--nps-primary-dark);
  padding: 20px 0;
}
.nps-stats-inner { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.nps-stat-item { text-align: center; color: #fff; }
.nps-stat-number { font-family: var(--nps-font-head); font-size: 1.6rem; font-weight: 700; color: var(--nps-accent); display: block; line-height: 1; }
.nps-stat-label { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ========== SIDEBAR ========== */
.nps-sidebar-widget {
  background: #fff;
  border: 1px solid var(--nps-border);
  border-radius: var(--nps-radius);
  padding: 20px;
  margin-bottom: 24px;
}
.nps-widget-heading {
  font-family: var(--nps-font-head);
  font-size: 1rem;
  color: var(--nps-dark);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--nps-primary);
}
.nps-partner-box { background: var(--nps-bg); }
.nps-partner-img { width: 100%; border-radius: var(--nps-radius-sm); transition: var(--nps-transition); }
.nps-partner-img:hover { transform: scale(1.02); box-shadow: var(--nps-shadow); }

/* Recent posts in sidebar */
.nps-sidebar-posts { list-style: none; padding: 0; margin: 0; }
.nps-sidebar-posts li { border-bottom: 1px solid var(--nps-border); padding: 10px 0; }
.nps-sidebar-posts li:last-child { border: 0; }
.nps-sidebar-posts a { color: var(--nps-text); font-size: .9rem; font-weight: 600; }
.nps-sidebar-posts a:hover { color: var(--nps-primary); text-decoration: none; }

/* ========== AUTHOR BOX ========== */
.nps-author-box {
  display: flex;
  gap: 20px;
  background: var(--nps-bg);
  border: 1px solid var(--nps-border);
  border-radius: var(--nps-radius);
  padding: 24px;
  margin: 32px 0;
  align-items: flex-start;
}
.nps-author-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--nps-primary);
}
.nps-author-meta { flex: 1; }
.nps-author-name { font-family: var(--nps-font-head); font-weight: 700; font-size: 1.05rem; color: var(--nps-dark); margin: 0 0 4px; }
.nps-author-role { font-size: .82rem; color: var(--nps-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.nps-author-bio { font-size: .9rem; color: var(--nps-text-muted); margin: 0; line-height: 1.5; }
.nps-author-verified { display: inline-flex; align-items: center; gap: 4px; background: rgba(39,174,96,.12); color: var(--nps-success); font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; margin-left: 6px; }

/* ========== FOOTER ========== */
.nps-footer {
  background: var(--nps-dark);
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
  margin-top: 80px;
}
.nps-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.nps-footer-col h4 {
  color: var(--nps-accent);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.nps-footer-col p { font-size: .9rem; line-height: 1.65; margin: 0 0 12px; }
.nps-footer-col ul { list-style: none; padding: 0; margin: 0; }
.nps-footer-col ul li { margin-bottom: 8px; }
.nps-footer-col ul li a { color: rgba(255,255,255,.7); font-size: .9rem; transition: var(--nps-transition); }
.nps-footer-col ul li a:hover { color: #fff; text-decoration: none; }

/* Disclaimer */
.nps-disclaimer {
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--nps-radius-sm);
  padding: 14px 18px;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  margin: 20px 0 0;
  line-height: 1.5;
}
.nps-disclaimer strong { color: var(--nps-accent); }

/* Footer bottom bar */
.nps-footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.nps-footer-copy { font-size: .82rem; color: rgba(255,255,255,.5); }
.nps-footer-legal { display: flex; gap: 18px; }
.nps-footer-legal a { font-size: .82rem; color: rgba(255,255,255,.5); transition: var(--nps-transition); }
.nps-footer-legal a:hover { color: rgba(255,255,255,.85); }

/* ========== FAQ ACCORDION ========== */
.nps-faq-bereich { margin: 32px 0; }
.nps-faq-bereich h2 { margin-bottom: 1.2em; }
.nps-faq-item {
  border: 1px solid var(--nps-border);
  border-radius: var(--nps-radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--nps-transition);
}
.nps-faq-item.open { border-color: var(--nps-primary); }
.nps-faq-frage {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--nps-font-body);
  color: var(--nps-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.nps-faq-frage:hover { background: rgba(74,103,65,.05); }
.nps-faq-icon { width: 24px; height: 24px; background: var(--nps-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .8rem; transition: var(--nps-transition); }
.nps-faq-item.open .nps-faq-icon { transform: rotate(45deg); }
.nps-faq-antwort { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.nps-faq-item.open .nps-faq-antwort { max-height: 500px; }
.nps-faq-antwort-inner { padding: 0 20px 18px; font-size: .95rem; color: var(--nps-text-muted); border-top: 1px solid var(--nps-border); padding-top: 14px; }

/* ========== INTERNAL LINKS GRID ========== */
.nps-intern-links {
  background: var(--nps-bg);
  border: 1px solid var(--nps-border);
  border-radius: var(--nps-radius);
  padding: 24px;
  margin: 32px 0;
}
.nps-intern-links h3 { font-size: 1rem; margin-bottom: 14px; }
.nps-intern-links-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.nps-intern-links-raster a {
  display: block;
  background: #fff;
  border: 1px solid var(--nps-border);
  border-radius: var(--nps-radius-sm);
  padding: 10px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--nps-text);
  transition: var(--nps-transition);
  text-align: center;
}
.nps-intern-links-raster a:hover {
  background: var(--nps-primary);
  color: #fff;
  border-color: var(--nps-primary);
  text-decoration: none;
}

/* ========== CHATGPT CITATION BADGE ========== */
.nps-ai-citation {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  border-radius: var(--nps-radius);
  padding: 18px 22px;
  margin: 28px 0;
}
.nps-ai-citation-icon { font-size: 2rem; flex-shrink: 0; }
.nps-ai-citation-text { flex: 1; font-size: .9rem; }
.nps-ai-citation-text strong { display: block; margin-bottom: 2px; color: #74b9ff; }

/* ========== RG NOTICE ========== */
.nps-rg-notice {
  background: rgba(192,57,43,.07);
  border: 1px solid rgba(192,57,43,.25);
  border-radius: var(--nps-radius-sm);
  padding: 14px 18px;
  font-size: .82rem;
  color: var(--nps-text-muted);
  margin: 24px 0;
  line-height: 1.55;
}
.nps-rg-notice strong { color: var(--nps-danger); }
.nps-rg-notice a { color: var(--nps-danger); }

/* ========== DATA REPORT ========== */
.nps-stat-raster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 32px 0;
}
.nps-stat-box {
  background: var(--nps-bg-card);
  border: 1px solid var(--nps-border);
  border-radius: var(--nps-radius);
  padding: 20px;
  text-align: center;
  transition: var(--nps-transition);
}
.nps-stat-box:hover { border-color: var(--nps-primary); box-shadow: var(--nps-shadow); }
.nps-stat-zahl { font-family: var(--nps-font-head); font-size: 2rem; font-weight: 700; color: var(--nps-primary); display: block; line-height: 1; margin-bottom: 6px; }
.nps-stat-bez { font-size: .82rem; color: var(--nps-text-muted); font-weight: 600; }

.nps-bl-karte-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.nps-bl-karte {
  background: var(--nps-bg-card);
  border: 1px solid var(--nps-border);
  border-radius: var(--nps-radius-sm);
  padding: 16px 18px;
  transition: var(--nps-transition);
}
.nps-bl-karte:hover { border-color: var(--nps-primary); }
.nps-bl-name { font-weight: 700; font-size: .9rem; color: var(--nps-dark); margin-bottom: 4px; }
.nps-bl-wert { font-family: var(--nps-font-head); font-size: 1.4rem; color: var(--nps-primary); font-weight: 700; }

.nps-erkenntnis-box {
  border-left: 4px solid var(--nps-primary);
  background: rgba(74,103,65,.07);
  padding: 16px 20px;
  border-radius: 0 var(--nps-radius-sm) var(--nps-radius-sm) 0;
  margin: 20px 0;
}
.nps-erkenntnis-box strong { display: block; color: var(--nps-primary); margin-bottom: 4px; }

.nps-chart-wrap {
  background: var(--nps-bg-card);
  border: 1px solid var(--nps-border);
  border-radius: var(--nps-radius);
  padding: 24px;
  margin: 24px 0;
}

/* Lightbox */
.nps-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.nps-gallery-item { cursor: pointer; border-radius: var(--nps-radius-sm); overflow: hidden; aspect-ratio: 16/9; }
.nps-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nps-gallery-item:hover img { transform: scale(1.05); }

.nps-lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nps-lightbox-overlay.active { opacity: 1; pointer-events: all; }
.nps-lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--nps-radius-sm); }
.nps-lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 1.8rem; cursor: pointer; line-height: 1; background: none; border: none; }
.nps-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.5rem; padding: 12px 16px; cursor: pointer; border-radius: var(--nps-radius-sm); transition: var(--nps-transition); }
.nps-lightbox-nav:hover { background: rgba(255,255,255,.3); }
.nps-lightbox-prev { left: 20px; }
.nps-lightbox-next { right: 20px; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --nps-bg:      #1e2520;
    --nps-bg-card: #252e22;
    --nps-border:  #3a4a36;
    --nps-text:    #e0ddd6;
    --nps-text-muted: #8a9e84;
  }
  .nps-header { background: #1e2520; }
}

/* Responsive */
@media (max-width: 992px) {
  .nps-footer-grid { grid-template-columns: 1fr 1fr; }
  .nps-stat-raster { grid-template-columns: repeat(2, 1fr); }
  .nps-bl-karte-raster { grid-template-columns: repeat(2, 1fr); }
  .nps-intern-links-raster { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nps-nav { display: none; }
  .nps-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 2px solid var(--nps-primary); padding: 16px 20px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
  .nps-nav.open ul { flex-direction: column; gap: 4px; }
  .nps-menu-toggle { display: flex; align-items: center; }
  .nps-header-inner { position: relative; }
  .nps-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nps-footer-bottom { flex-direction: column; text-align: center; }
  .nps-stat-raster { grid-template-columns: repeat(2, 1fr); }
  .nps-gallery { grid-template-columns: repeat(2, 1fr); }
  .nps-hero { padding: 56px 0 48px; }
  .nps-stats-inner { gap: 28px; }
}
@media (max-width: 576px) {
  .nps-stat-raster { grid-template-columns: 1fr 1fr; }
  .nps-bl-karte-raster { grid-template-columns: 1fr; }
  .nps-intern-links-raster { grid-template-columns: 1fr 1fr; }
  .nps-hero-actions { flex-direction: column; }
}
@media print {
  .nps-header, .nps-footer, .nps-sidebar, .nps-menu-toggle { display: none; }
}
