/* ===== Subpage shared styles ===== */

/* Page hero (used on all subpages) */
.page-hero {
  position: relative;
  background: var(--nv-paper);
  border-bottom: var(--rule);
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(40px, 5vw, 80px);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 17, 16, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 17, 16, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 70%);
}
.page-hero .container { position: relative; }

.breadcrumb {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--nv-steel);
  margin-bottom: 32px;
}
.breadcrumb a:hover { color: var(--nv-green); }
.breadcrumb .sep { color: var(--nv-mist); }
.breadcrumb .current { color: var(--nv-ink); }

.page-hero-grid {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start;
}
.page-hero-meta {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em;
}
.page-hero-meta .num { color: var(--nv-steel); text-transform: uppercase; }
.page-hero-meta .label { color: var(--nv-green); text-transform: uppercase; }
.page-hero-title h1 {
  font-size: clamp(36px, 6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.page-hero-title .lede { margin-top: 32px; max-width: 60ch; }

@media (max-width: 720px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Product page hero with side-by-side text + photo (mehrkammer / 2crd / komponenten) */
.page-hero-with-image .page-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.page-hero-text { display: flex; flex-direction: column; gap: 0; }
.page-hero-eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero-eyebrow .num { color: var(--nv-steel); }
.page-hero-eyebrow .label { color: var(--nv-green); }
.page-hero-with-image .page-hero-text h1 {
  font-size: clamp(32px, 4.6vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
}
.page-hero-with-image .page-hero-text .lede {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 24px;
  max-width: 56ch;
  color: var(--nv-graphite);
}
.page-hero-photo {
  margin: 0;
  aspect-ratio: 4/3;
  background: var(--nv-paper-2);
  border: var(--rule);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.page-hero-photo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 900px) {
  .page-hero-with-image .page-hero-split { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-with-image .page-hero-text h1 { font-size: clamp(30px, 6vw, 44px); }
}

/* Page hero with autoplaying YouTube background video (azienda.html) */
.page-hero-with-video { min-height: clamp(520px, 60vh, 720px); background: var(--nv-paper); }
.page-hero-with-video::before { display: none; } /* hide the grid pattern over the video */
.page-hero-video {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.page-hero-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;       /* 9/16 of 100vw — keeps 16:9 ratio */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(245, 244, 240, 0.55) 0%,
      rgba(245, 244, 240, 0.38) 45%,
      rgba(245, 244, 240, 0.62) 100%);
  pointer-events: none;
}
.page-hero-with-video .page-hero-title h1,
.page-hero-with-video .page-hero-title .lede {
  /* text-shadow keeps dark text legible over the now-prominent video */
  text-shadow: 0 1px 2px rgba(245, 244, 240, 0.8), 0 0 12px rgba(245, 244, 240, 0.6);
}
.page-hero-with-video > .container { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .page-hero-video iframe { display: none; }
}
@media (max-width: 720px) {
  /* Mobile: drop the video to save bandwidth + simplify layout */
  .page-hero-video { display: none; }
  .page-hero-overlay { display: none; }
  .page-hero-with-video { min-height: 0; }
}

/* Two-col page section */
.two-col {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.two-col .col-meta { position: sticky; top: 120px; }
.two-col h2 { letter-spacing: -0.025em; }
.two-col .col-body p { font-size: 17px; line-height: 1.65; color: var(--nv-graphite); margin-bottom: 20px; max-width: 64ch; }
.two-col .col-body p strong { color: var(--nv-ink); font-weight: 500; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .two-col .col-meta { position: static; } }

/* Feature list */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--rule);
  border-left: var(--rule);
}
.feature {
  padding: 32px 28px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.feature .num { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--nv-green); position: relative; z-index: 2; }
.feature h4 { font-size: 22px; letter-spacing: -0.02em; position: relative; z-index: 2; transition: color 0.3s ease; }
.feature p { color: var(--nv-graphite); font-size: 14px; line-height: 1.6; position: relative; z-index: 2; transition: color 0.3s ease; }

/* Hover-image overlay on application feature cards (mehrkammer / 2crd) */
.feature .feature-hover {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; transition: opacity 0.4s ease;
  background-size: cover; background-position: center;
}
.feature .feature-hover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,17,16,0.55) 0%, rgba(14,17,16,0.78) 100%);
}
/* Hover effects only on pointing devices — prevents iOS Safari "sticky-hover"
   from washing the text out on tap and leaving an empty light card. */
@media (hover: hover) and (pointer: fine) {
  .feature:hover .feature-hover { opacity: 1; }
  .feature:hover h4, .feature:hover p { color: var(--nv-white); }
}
@media (hover: none) {
  .feature .feature-hover { display: none; }
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } .feature { min-height: 140px; padding: 24px 20px; } }

/* Big stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.stat-strip .stat {
  padding: 40px 28px;
  border-right: var(--rule);
  display: flex; flex-direction: column; gap: 12px;
}
.stat-strip .stat:last-child { border-right: none; }
.stat-strip .v { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1; }
@media (max-width: 900px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip .stat:nth-child(2n) { border-right: none; }
  .stat-strip .stat { border-bottom: var(--rule); }
}

/* Contact form */
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form .lbl { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--nv-steel); text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  background: var(--nv-white);
  border: 1px solid rgba(14,17,16,0.18);
  color: var(--nv-ink);
  outline: none;
  transition: 0.2s;
  font-family: var(--ff-sans);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--nv-green); box-shadow: 0 0 0 3px rgba(26, 122, 58, 0.12); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--nv-graphite); }
.contact-form .check input { width: 18px; height: 18px; margin-top: 2px; }
.contact-form .submit-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
@media (max-width: 720px) { .contact-form { grid-template-columns: 1fr; } }

/* Map */
.map-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--nv-paper-2);
  overflow: hidden;
  border: var(--rule);
}
.map-pin {
  position: absolute;
  top: 42%;
  left: 52%;
  transform: translate(-50%, -50%);
}
.map-pin .pin {
  width: 16px; height: 16px; background: var(--nv-green); border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(26,122,58,0.18), 0 0 0 14px rgba(26,122,58,0.1);
  animation: live-pulse 2.5s infinite;
}
.map-pin .pinlabel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 18px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em;
  background: var(--nv-ink); color: var(--nv-white);
  padding: 6px 10px; text-transform: uppercase;
  white-space: nowrap;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14, 17, 16, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 17, 16, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-roads { position: absolute; inset: 0; }

/* Download list */
.dl-list { display: flex; flex-direction: column; border-top: var(--rule); }
.dl-row {
  display: grid;
  grid-template-columns: 60px 1fr 120px 100px 110px;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: var(--rule);
  transition: 0.2s;
  font-size: 15px;
}
.dl-row:hover { background: var(--nv-paper-2); padding-left: 16px; padding-right: 16px; }
.dl-row .ico {
  width: 44px; height: 44px;
  background: var(--nv-green-tint); color: var(--nv-green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.05em;
  border: 1px solid rgba(26,122,58,0.2);
}
.dl-row .title { font-weight: 500; letter-spacing: -0.01em; }
.dl-row .meta { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--nv-steel); text-transform: uppercase; }
.dl-row .langs { font-family: var(--ff-mono); font-size: 11px; color: var(--nv-graphite); }
.dl-row .dl-btn { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nv-green); display: flex; align-items: center; gap: 6px; justify-self: end; }
.dl-row .dl-btn:hover { color: var(--nv-ink); }
@media (max-width: 800px) {
  .dl-row { grid-template-columns: 44px 1fr auto; }
  .dl-row .meta, .dl-row .langs { display: none; }
}

/* Partner card */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--nv-fog); border: 1px solid var(--nv-fog); }
.partner-cell {
  background: var(--nv-paper);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 240px;
  transition: 0.2s;
}
.partner-cell:hover { background: var(--nv-white); }
.partner-cell .pflag {
  font-size: 28px; line-height: 1;
  display: inline-flex; align-items: center;
}
.partner-cell .pflag.pflag-sm {
  font-size: 12px; font-family: var(--ff-mono); letter-spacing: 0.1em;
  color: var(--nv-steel); padding-top: 6px;
}
.partner-cell h3 { font-size: 22px; letter-spacing: -0.02em; }
.partner-cell .region { font-size: 18px; line-height: 1.2; letter-spacing: 0.04em; }
.partner-cell .pinfo { color: var(--nv-graphite); font-size: 14px; line-height: 1.6; }
.partner-cell .plinks { display: flex; gap: 14px; margin-top: auto; flex-wrap: wrap; }
.partner-cell .plinks a { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--nv-green); text-transform: uppercase; }
.partner-cell .plinks a:hover { color: var(--nv-ink); }
@media (max-width: 1080px) { .partner-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .partner-grid { grid-template-columns: 1fr; } }

/* News list */
.news-list { display: flex; flex-direction: column; border-top: var(--rule); }
.news-row {
  display: grid; grid-template-columns: 240px 140px 1fr 60px; gap: 24px;
  padding: 28px 0;
  border-bottom: var(--rule);
  align-items: center;
  transition: 0.2s;
}
.news-row:hover { background: var(--nv-paper-2); padding-left: 16px; padding-right: 16px; }
.news-row .img { aspect-ratio: 16/10; }
.news-row .date { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--nv-steel); text-transform: uppercase; }
.news-row .title { font-size: 20px; letter-spacing: -0.015em; line-height: 1.3; font-weight: 500; }
.news-row .arrow-go { justify-self: end; color: var(--nv-green); }
@media (max-width: 720px) {
  .news-row { grid-template-columns: 100px 1fr; gap: 16px; padding: 20px 0; }
  .news-row .date { display: none; }
  .news-row .arrow-go { display: none; }
}

/* Tab pills (filter) */
.tab-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: var(--rule);
}
.tab-pill {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid rgba(14,17,16,0.15);
  color: var(--nv-graphite);
  transition: 0.2s;
}
.tab-pill:hover { border-color: var(--nv-ink); color: var(--nv-ink); }
.tab-pill.active { background: var(--nv-ink); color: var(--nv-white); border-color: var(--nv-ink); }

/* Product gallery — for produzione.html */
.prod-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .prod-grid { grid-template-columns: 1fr; } }

/* Three-category showcase cards (used on produzione.html) */
.prod-cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 980px) { .prod-cat-grid { grid-template-columns: 1fr; gap: 32px; } }
.prod-cat {
  display: flex; flex-direction: column;
  background: var(--nv-white);
  border: var(--rule);
  transition: 0.3s;
  text-decoration: none; color: inherit;
}
.prod-cat:hover { border-color: var(--nv-ink); transform: translateY(-4px); }
.prod-cat-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--nv-paper-2);
}
.prod-cat-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s ease; }
.prod-cat:hover .prod-cat-img img { transform: scale(1.04); }
.prod-cat-body { padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.prod-cat-body h3 { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -0.02em; line-height: 1.15; color: var(--nv-ink); }
.prod-cat-body p { font-size: 15px; line-height: 1.55; color: var(--nv-graphite); flex: 1; }
.prod-cat-cta { color: var(--nv-green); margin-top: 8px; }

/* Model spec table (2CRD page etc.) */
.table-wrap { overflow-x: auto; border: var(--rule); }
.model-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.model-table thead { background: var(--nv-paper-2); }
.model-table th, .model-table td { text-align: left; padding: 14px 18px; border-bottom: var(--rule); }
.model-table th { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nv-steel); font-weight: 500; }
.model-table tr:last-child td { border-bottom: none; }
.model-table tr:hover td { background: var(--nv-paper); }
.model-table td.mono, .model-table .mono { font-family: var(--ff-mono); }
.model-table td b { font-weight: 500; color: var(--nv-ink); }
@media (max-width: 720px) { .model-table { font-size: 13px; } .model-table th, .model-table td { padding: 12px 14px; } }

/* Responsive video embed */
.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--nv-ink); border: 1px solid rgba(255,255,255,0.14);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Photo gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; background: var(--nv-paper-2); border: var(--rule); }
.gallery-grid figure img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ISO 9001 certification block (azienda.html) — text + clickable certificate preview */
.iso-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.iso-text { display: flex; flex-direction: column; gap: 18px; max-width: 56ch; }
.iso-text h2 { letter-spacing: -0.025em; }
.iso-text p { font-size: 16px; line-height: 1.65; color: var(--nv-graphite); margin: 0; }
.iso-image {
  display: block;
  background: var(--nv-paper-2);
  border: var(--rule);
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 2px 12px rgba(14,17,16,0.06);
}
.iso-image img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.iso-image:hover { box-shadow: 0 6px 24px rgba(14,17,16,0.12); transform: translateY(-2px); }
.iso-image:hover img { transform: scale(1.02); }
@media (max-width: 900px) {
  .iso-grid { grid-template-columns: 1fr; gap: 32px; }
  .iso-image { max-width: 480px; margin: 0 auto; }
}

/* Component detail grid (komponenten.html) — product photo on neutral background + caption */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.detail-grid figure { margin: 0; display: flex; flex-direction: column; background: var(--nv-white); border: var(--rule); }
.detail-grid .detail-img { aspect-ratio: 4/3; overflow: hidden; background: var(--nv-paper-2); display: flex; align-items: center; justify-content: center; }
.detail-grid .detail-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.4s ease; }
.detail-grid figure:hover .detail-img img { transform: scale(1.03); }
.detail-grid figcaption { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.detail-grid figcaption .mono-label { color: var(--nv-green); }
.detail-grid figcaption h4 { font-size: 18px; letter-spacing: -0.01em; color: var(--nv-ink); line-height: 1.25; }
.detail-grid figcaption p { font-size: 14px; line-height: 1.55; color: var(--nv-graphite); margin: 0; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .detail-grid { grid-template-columns: 1fr; } }

/* Premium partner cards (partner.html) */
.premium-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.premium-grid-3 { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
@media (max-width: 1080px) { .premium-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .premium-grid { grid-template-columns: 1fr; } .premium-grid-3 { grid-template-columns: 1fr; } }
.premium-stack { display: flex; flex-direction: column; gap: 16px; }
.premium-card-compact { padding: 18px 22px; }
.premium-card-compact .premium-head { margin-bottom: 8px; }
.premium-card-compact .premium-brand-name strong { font-size: 16px; }
.premium-card-compact .premium-region { font-size: 13px; margin: 4px 0; }
.premium-card-compact .premium-info { font-size: 12.5px; line-height: 1.5; margin: 6px 0; }
.premium-card-compact .premium-contact { margin-top: 8px; gap: 8px; }
.premium-card-compact .premium-contact p { font-size: 13px; margin: 2px 0; }
.premium-card-compact .premium-links a { font-size: 12.5px; }
.premium-card {
  background: var(--nv-white);
  border: 1px solid var(--nv-ink);
  box-shadow: 8px 8px 0 var(--nv-ink);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: 0.2s;
}
.premium-card:hover { transform: translate(-2px, -2px); box-shadow: 12px 12px 0 var(--nv-ink); }
.premium-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 60px; }
.premium-logo { max-height: 40px; width: auto; max-width: 132px; object-fit: contain; }
.premium-brand { display: flex; align-items: center; gap: 12px; }
.premium-brand .logo-circles { display: flex; }
.premium-brand .logo-circles .c { width: 32px; height: 32px; border-radius: 50%; }
.premium-brand .logo-circles .c.green { background: var(--nv-green); }
.premium-brand .logo-circles .c.grey { background: var(--nv-mist); margin-left: -12px; }
.premium-brand-name { display: flex; flex-direction: column; gap: 4px; }
.premium-brand-name strong { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--nv-ink); }
.premium-badge {
  background: var(--nv-green-tint); color: var(--nv-green);
  padding: 6px 12px; font-size: 10px;
  border: 1px solid rgba(26,122,58,0.25);
}
.premium-region { font-size: 22px; line-height: 1.2; letter-spacing: 0.06em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.premium-region-sub {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--nv-steel);
}
.premium-info { font-size: 15px; line-height: 1.55; color: var(--nv-graphite); }
.premium-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; padding-top: 18px; border-top: var(--rule); }
.premium-contact > div { display: flex; flex-direction: column; gap: 4px; }
.premium-contact p { font-size: 14px; line-height: 1.5; color: var(--nv-ink); }
.premium-links { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: var(--rule); }
.premium-links a { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--nv-green); }
.premium-links a:hover { color: var(--nv-ink); }
@media (max-width: 560px) { .premium-contact { grid-template-columns: 1fr; } }

/* Mobile-only Glogar spotlight banner (above premium-grid) */
.glogar-mobile-banner { display: none; }
@media (max-width: 900px) {
  .glogar-mobile-banner {
    display: block;
    padding: clamp(20px, 4vw, 36px) 0;
    background: linear-gradient(135deg, rgba(26, 122, 58, 0.06), rgba(42, 148, 80, 0.04));
    border-bottom: var(--rule);
  }
  .glogar-mobile-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px;
    background: var(--nv-white);
    border: 1px solid var(--nv-ink);
    box-shadow: 6px 6px 0 var(--nv-ink);
    text-decoration: none; color: inherit;
    transition: 0.2s;
  }
  .glogar-mobile-card:active { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--nv-ink); }
  .glogar-mobile-logo { width: 96px; height: auto; }
  .glogar-mobile-body { display: flex; flex-direction: column; gap: 6px; }
  .glogar-mobile-body .mono-label { color: var(--nv-green); font-size: 10px; letter-spacing: 0.1em; }
  .glogar-mobile-body h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.25; color: var(--nv-ink); margin: 2px 0 4px; }
  .glogar-mobile-body p { font-size: 13px; line-height: 1.5; color: var(--nv-graphite); }
  .glogar-mobile-cta { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
  .glogar-mobile-cta a { color: var(--nv-green); font-size: 11px; }
  .glogar-mobile-cta a:active { color: var(--nv-ink); }
}
@media (max-width: 480px) {
  .glogar-mobile-card { grid-template-columns: 1fr; text-align: left; }
  .glogar-mobile-logo { width: 130px; height: auto; }
}

/* On mobile: make Glogar card appear FIRST in the premium grid (order: 0)
   and Novatec second (order: 1). Also enlarge Glogar logo. */
@media (max-width: 900px) {
  .premium-card:has(.premium-logo) { order: 0; }
  .premium-card:has(.premium-brand) { order: 1; }
  .premium-card .premium-logo { max-height: 50px; max-width: 154px; }
}

/* Cross-link cards between product family pages */
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: flex; gap: 18px; align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 16px;
  text-decoration: none; color: inherit;
  transition: 0.2s;
}
.related-card:hover { background: rgba(255,255,255,0.08); border-color: var(--nv-green-light); transform: translateY(-2px); }
.related-img { flex: 0 0 120px; aspect-ratio: 4/3; overflow: hidden; background: var(--nv-paper-2); }
.related-img img { width: 100%; height: 100%; object-fit: contain; }
.related-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.related-body h4 { color: var(--nv-white); font-size: 17px; letter-spacing: -0.01em; line-height: 1.25; }
.related-body .mono-label { color: var(--nv-green-light); }

/* Branchen cross-link product grid (light variant for branchen.html) */
.branch-section { padding: clamp(48px, 6vw, 84px) 0; border-bottom: var(--rule); }
.branch-section:last-child { border-bottom: none; }
.branch-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .branch-grid { grid-template-columns: 1fr; } }
.branch-img { aspect-ratio: 4/3; overflow: hidden; border: var(--rule); background: var(--nv-paper-2); position: relative; }
.branch-img img { width: 100%; height: 100%; object-fit: contain; }
.branch-img .img-hover {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.4s ease;
}
.branch-section:hover .branch-img .img-hover,
.branch-img:hover .img-hover { opacity: 1; }
@media (hover: none) {
  /* on touch devices: keep both visible via subtle fade after a delay isn't worth it; just stay on primary */
  .branch-img .img-hover { display: none; }
}
.branch-body { display: flex; flex-direction: column; gap: 14px; }
.branch-body h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.025em; line-height: 1.1; }
.branch-body p { font-size: 16px; line-height: 1.6; color: var(--nv-graphite); max-width: 60ch; }
.branch-products { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.branch-product-chip {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid rgba(14,17,16,0.18);
  color: var(--nv-ink);
  background: var(--nv-white);
  text-decoration: none;
  transition: 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.branch-product-chip:hover { background: var(--nv-green); color: var(--nv-white); border-color: var(--nv-green); }
.branch-product-chip .arrow { width: 10px; height: 10px; }

/* News page — LinkedIn CTA banner */
.linkedin-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #0a66c2 0%, #084d94 100%);
  color: var(--nv-white);
  text-decoration: none;
  border: 1px solid #084d94;
  box-shadow: 8px 8px 0 var(--nv-ink);
  transition: 0.2s;
}
.linkedin-cta:hover { transform: translate(-2px, -2px); box-shadow: 12px 12px 0 var(--nv-ink); }
.linkedin-cta-left { display: flex; align-items: center; gap: 22px; }
.linkedin-icon { color: var(--nv-white); flex-shrink: 0; }
.linkedin-cta .mono-label { color: rgba(255,255,255,0.7); }
.linkedin-cta h3 { font-size: clamp(20px, 2vw, 26px); color: var(--nv-white); margin-top: 2px; }
.linkedin-cta p { font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 4px; max-width: 60ch; }
.linkedin-cta-btn { background: var(--nv-white) !important; color: #0a66c2 !important; border-color: var(--nv-white) !important; flex-shrink: 0; }
.linkedin-cta-btn:hover { background: var(--nv-ink) !important; color: var(--nv-white) !important; border-color: var(--nv-ink) !important; }
@media (max-width: 720px) {
  .linkedin-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .linkedin-cta-left { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* News empty state */
.news-empty {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 24px;
  background: var(--nv-paper-2);
  border: var(--rule);
}
.news-empty h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; margin-top: 14px; }
.news-empty p { color: var(--nv-graphite); margin-top: 14px; max-width: 52ch; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* News grid (LinkedIn-driven) */
.news-grid-linkedin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .news-grid-linkedin { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid-linkedin { grid-template-columns: 1fr; } }
.np-card {
  display: flex; flex-direction: column;
  background: var(--nv-white);
  border: var(--rule);
  text-decoration: none; color: inherit;
  transition: 0.3s;
}
.np-card:hover { border-color: var(--nv-ink); transform: translateY(-4px); }
.np-img { aspect-ratio: 4/3; overflow: hidden; background: var(--nv-paper-2); }
.np-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s ease; }
.np-card:hover .np-img img { transform: scale(1.04); }
.np-img-empty { background: linear-gradient(135deg, var(--nv-paper-2), var(--nv-paper)); }
.np-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.np-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.np-date { color: var(--nv-steel); }
.np-tag { color: var(--nv-green); padding: 4px 10px; border: 1px solid rgba(26,122,58,0.25); background: var(--nv-green-tint); }
.np-body h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
.np-body p { color: var(--nv-graphite); font-size: 14px; line-height: 1.55; flex: 1; }
.np-cta { color: var(--nv-green); margin-top: 8px; }

/* ============ LinkedIn-style news cards (news.html) ============ */
.li-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) { .li-feed { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .li-feed { grid-template-columns: 1fr; } }
.li-card {
  background: var(--nv-white);
  border: var(--rule);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.li-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.li-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 10px;
}
.li-avatar {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--nv-ink);
}
.li-avatar svg { width: 48px; height: 48px; display: block; }
.li-avatar img { width: 100%; height: 100%; object-fit: cover; }
.li-head-meta {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
  line-height: 1.3;
}
.li-head-meta strong {
  font-size: 14px; color: var(--nv-ink); font-weight: 600;
  letter-spacing: -0.005em;
}
.li-head-meta .li-sub {
  font-size: 12px; color: var(--nv-steel);
}
.li-head-meta .li-dot { color: var(--nv-steel); margin: 0 4px; }
.li-open {
  flex: 0 0 auto;
  font-size: 18px; line-height: 1;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--nv-graphite);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.li-open:hover { background: var(--nv-paper-2); color: var(--nv-ink); }

.li-body { padding: 4px 16px 12px; }
.li-excerpt, .li-full p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--nv-ink);
  margin: 0 0 10px;
  white-space: pre-wrap;
}
.li-excerpt:last-child, .li-full p:last-child { margin-bottom: 0; }
.li-full p + p { margin-top: 10px; }
.li-tag {
  color: #0a66c2;
  text-decoration: none;
  font-weight: 500;
}
.li-tag:hover { text-decoration: underline; }
.li-more {
  background: none; border: none;
  color: var(--nv-steel);
  cursor: pointer;
  font: inherit;
  padding: 0;
  font-weight: 500;
}
.li-more:hover { color: var(--nv-ink); text-decoration: underline; }

.li-gallery {
  display: grid;
  gap: 2px;
  background: var(--nv-paper-2);
  max-height: 360px;
  overflow: hidden;
}
.li-gallery .li-cell {
  position: relative;
  overflow: hidden;
  background: var(--nv-paper-2);
}
.li-gallery .li-cell img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.li-gallery--1 {
  grid-template-columns: 1fr;
}
.li-gallery--1 .li-cell {
  aspect-ratio: 16/10;
}
.li-gallery--2 {
  grid-template-columns: 1fr 1fr;
}
.li-gallery--2 .li-cell {
  aspect-ratio: 1/1;
}
.li-gallery--3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 4/3;
}
.li-gallery--3 .li-cell--span {
  grid-row: span 2;
}
.li-gallery--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1/1;
}
.li-cell-more {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 17, 21, 0.55);
  color: #fff;
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.01em;
}

.li-foot {
  border-top: 1px solid var(--nv-line);
  padding: 12px 16px;
  text-align: center;
}
.li-cta {
  font-size: 13px;
  color: #0a66c2;
  text-decoration: none;
  font-weight: 600;
}
.li-cta:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .li-feed { max-width: 100%; }
  .li-gallery--3 { aspect-ratio: 4/4; }
}

/* Home page news empty state (LinkedIn CTA inline) */
.home-news-empty {
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, #0a66c2 0%, #084d94 100%);
  color: var(--nv-white);
  border: 1px solid #084d94;
  box-shadow: 8px 8px 0 var(--nv-ink);
}
.linkedin-cta-inline {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 28px;
}
.linkedin-cta-inline .linkedin-icon { color: var(--nv-white); }
.home-news-empty-body { color: var(--nv-white); }
.home-news-empty-body .mono-label { color: rgba(255,255,255,0.75); }
.home-news-empty-body h3 { color: var(--nv-white); font-size: clamp(20px, 2vw, 26px); margin-top: 6px; }
.home-news-empty-body p { color: rgba(255,255,255,0.85); margin-top: 8px; font-size: 14px; line-height: 1.55; max-width: 60ch; }
.home-news-empty .btn.primary { background: var(--nv-white) !important; color: #0a66c2 !important; border-color: var(--nv-white) !important; }
.home-news-empty .btn.primary:hover { background: var(--nv-ink) !important; color: var(--nv-white) !important; border-color: var(--nv-ink) !important; }
@media (max-width: 800px) {
  .linkedin-cta-inline { grid-template-columns: 1fr; text-align: left; }
}

.prod-card {
  background: var(--nv-white);
  border: var(--rule);
  display: flex; flex-direction: column;
  transition: 0.3s;
}
.prod-card:hover { border-color: var(--nv-ink); }
.prod-card .imgslot { aspect-ratio: 4/3; }
.prod-card .pc-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prod-card .pc-cat { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nv-green); }
.prod-card .pc-title { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
.prod-card .pc-specs {
  list-style: none; padding: 0; margin-top: auto;
  font-family: var(--ff-mono); font-size: 12px;
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 16px; border-top: var(--rule);
  color: var(--nv-graphite);
}
.prod-card .pc-specs li { display: flex; justify-content: space-between; }
.prod-card .pc-specs li b { font-weight: 500; color: var(--nv-ink); }

/* Timeline */
.timeline {
  display: flex; flex-direction: column;
  position: relative;
  padding-left: 32px;
  border-left: 1px solid rgba(14,17,16,0.15);
}
.t-item {
  position: relative;
  padding-bottom: 48px;
  display: flex; flex-direction: column; gap: 8px;
}
.t-item::before {
  content: ""; position: absolute; left: -38px; top: 6px;
  width: 12px; height: 12px; background: var(--nv-paper); border: 1.5px solid var(--nv-green); border-radius: 50%;
}
.t-item .year { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--nv-green); }
.t-item h4 { font-size: 22px; letter-spacing: -0.015em; }
.t-item p { color: var(--nv-graphite); font-size: 14px; line-height: 1.6; max-width: 56ch; }

/* Highlight quote */
.highlight-quote {
  padding: clamp(32px, 5vw, 64px);
  background: var(--nv-ink);
  color: var(--nv-white);
  position: relative;
  border-left: 4px solid var(--nv-green);
}
.highlight-quote p {
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.3; letter-spacing: -0.01em;
  max-width: 36ch;
  font-style: italic;
}
.highlight-quote .who { margin-top: 24px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--nv-mist); text-transform: uppercase; }
