/* ══════════════════════════════════════════════════
   Hub Pages — Shared CSS
   Used by: materialwelten, anwendungen, wissen, blog
   ══════════════════════════════════════════════════ */

/* ── Hub Cards (materialwelten) ──────────────────── */
    .hub-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gap);
    }
    .hub-card {
      background: var(--white);
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--stone-200);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
    }
    .hub-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 16px 48px rgba(42, 36, 30, 0.12);
      border-color: var(--stone-300);
    }
    .hub-card-img {
      aspect-ratio: 16 / 10;
      overflow: hidden;
      position: relative;
      background: var(--stone-100);
    }
    .hub-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .hub-card:hover .hub-card-img img {
      transform: scale(1.06);
    }
    .hub-card-body {
      padding: 1.75rem;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .hub-card-label {
      font-size: 0.6875rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 0.5rem;
    }
    .hub-card-title {
      font-family: var(--font-serif);
      font-size: 1.5rem;
      color: var(--stone-900);
      margin-bottom: 0.625rem;
    }
    .hub-card-desc {
      font-size: 0.9375rem;
      color: var(--stone-500);
      line-height: 1.65;
      margin-bottom: 1.5rem;
      flex: 1;
    }
    .hub-card-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.9375rem;
      font-weight: 500;
      color: var(--red);
      transition: gap 0.3s;
    }
    .hub-card-link:hover {
      gap: 0.8rem;
      text-decoration: underline;
    }

    /* ── Comparison grid (materialwelten) ─────────── */
    .compare-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: var(--gap);
    }
    .compare-col {
      background: var(--white);
      border: 1px solid var(--stone-200);
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.3s;
    }
    .compare-col:hover {
      box-shadow: 0 8px 32px rgba(42, 36, 30, 0.08);
      border-color: var(--stone-300);
    }
    .compare-col-header {
      padding: 1.5rem;
      text-align: center;
      border-bottom: 1px solid var(--stone-200);
    }
    .compare-col-header h3 {
      font-family: var(--font-serif);
      font-size: 1.375rem;
      color: var(--stone-900);
    }
    .compare-col-header p {
      font-size: 0.8125rem;
      color: var(--stone-500);
      margin-top: 0.25rem;
    }
    .compare-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.875rem 1.5rem;
      border-bottom: 1px solid var(--stone-100);
    }
    .compare-row:last-child {
      border-bottom: none;
    }
    .compare-label {
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--stone-700);
    }
    .compare-value {
      font-size: 0.875rem;
      color: var(--stone-500);
      text-align: right;
    }
    .compare-dots {
      display: flex;
      gap: 4px;
    }
    .compare-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--stone-200);
    }
    .compare-dot.filled {
      background: var(--red);
    }

    /* ── Materialwelten Sticky Section Nav ─────────── */
    .mw-section-nav {
      position: sticky;
      top: 72px;
      z-index: 90;
      background: var(--white);
      border-bottom: 1px solid var(--stone-200);
    }
    .mw-section-nav-inner {
      display: flex;
      gap: 0;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .mw-section-nav-inner::-webkit-scrollbar { display: none; }
    .mw-nav-link {
      padding: 0.75rem 1.25rem;
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--stone-500);
      text-decoration: none;
      white-space: nowrap;
      border-bottom: 2px solid transparent;
      transition: color 0.2s, border-color 0.2s;
    }
    .mw-nav-link:hover { color: var(--stone-800); }
    .mw-nav-link.active { color: var(--red); border-bottom-color: var(--red); }

    /* ── Application Cards Grid (anwendungen) ────── */
    .app-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gap);
    }
    .app-card {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      background: var(--stone-100);
      aspect-ratio: 3 / 2;
      display: block;
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .app-card:hover {
      transform: translateY(-4px);
    }
    .app-card-img {
      position: absolute;
      inset: 0;
      z-index: 0;
    }
    .app-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .app-card:hover .app-card-img img {
      transform: scale(1.06);
    }
    .app-card-img::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(26,22,19,0.72) 0%, rgba(26,22,19,0.18) 55%);
    }
    .app-card-content {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      height: 100%;
      padding: clamp(1.25rem, 2.5vw, 2rem);
    }
    .app-card h3 {
      font-family: var(--font-serif);
      font-size: clamp(1.25rem, 2vw, 1.625rem);
      color: var(--white);
      margin-bottom: 0.25rem;
    }
    .app-card .card-desc {
      font-size: 0.875rem;
      color: rgba(255,255,255,0.7);
      line-height: 1.5;
      margin-bottom: 0.5rem;
    }
    .app-card .card-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 500;
      font-size: 0.8125rem;
      color: rgba(255,255,255,0.75);
      letter-spacing: 0.02em;
      transition: gap 0.3s, color 0.3s;
    }
    .app-card:hover .card-link {
      gap: 0.75rem;
      color: var(--white);
    }

    /* ── Final CTA dark section ───────────────────── */
    .cta-dark {
      background: var(--stone-900);
      color: var(--white);
      position: relative;
      overflow: hidden;
    }
    .cta-dark::before {
      content: '';
      position: absolute;
      top: -200px;
      right: -200px;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(180,28,28,0.08), transparent 70%);
      pointer-events: none;
    }
    .cta-dark-inner {
      position: relative;
      text-align: center;
      max-width: 600px;
      margin: 0 auto;
    }
    .cta-dark .section-label { color: var(--red-light); }
    .cta-dark .section-title { color: var(--white); }
    .cta-dark-desc {
      font-size: 1.0625rem;
      line-height: 1.7;
      color: var(--stone-400);
      margin-top: 1rem;
      margin-bottom: 2.5rem;
    }
    .cta-dark-actions {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 1rem;
    }

    /* ── Lead paragraph ───────────────────────────── */
    .lead {
      font-size: 1.125rem;
      line-height: 1.75;
      color: var(--stone-600);
      max-width: 42em;
      margin-bottom: clamp(2rem, 4vw, 3rem);
    }

    /* ── Wissen Hero (compact, editorial) ──────── */
    .wissen-hero {
      background: var(--stone-100);
      padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
      min-height: 40vh;
      display: flex;
      align-items: center;
    }
    .wissen-hero h1 {
      font-family: var(--font-serif);
      font-size: clamp(3rem, 6vw, 5rem);
      line-height: 1.05;
      letter-spacing: -0.02em;
      color: var(--stone-900);
      margin-bottom: 1.25rem;
    }
    .wissen-hero-desc {
      font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
      line-height: 1.7;
      color: var(--stone-500);
      max-width: 42em;
    }

    /* ── Knowledge Category Grid (wissen) ─────────── */
    .know-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gap);
    }
    .know-card {
      background: var(--white);
      border: 1px solid var(--stone-200);
      border-radius: 12px;
      padding: clamp(1.5rem, 2.5vw, 2rem);
      text-decoration: none;
      color: inherit;
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .know-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(42, 36, 30, 0.1);
      border-color: var(--stone-300);
    }
    .know-card-icon {
      width: 48px;
      height: 48px;
      border-radius: 10px;
      background: var(--stone-100);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--red);
      flex-shrink: 0;
      transition: background 0.3s;
    }
    .know-card:hover .know-card-icon {
      background: rgba(180, 28, 28, 0.1);
    }
    .know-card h3 {
      font-family: var(--font-serif);
      font-size: 1.25rem;
      color: var(--stone-900);
      line-height: 1.2;
    }
    .know-card p {
      font-size: 0.9375rem;
      color: var(--stone-500);
      line-height: 1.6;
    }
    .know-card .card-arrow {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--red);
      margin-top: auto;
      transition: gap 0.3s;
    }
    .know-card:hover .card-arrow {
      gap: 0.7rem;
    }

    /* ── CTA Banner (wissen) ──────────────────────── */
    .wissen-cta {
      background: var(--stone-900);
      color: var(--white);
      text-align: center;
    }
    .wissen-cta h2 {
      font-family: var(--font-serif);
      font-size: clamp(2rem, 3.5vw, 2.75rem);
      color: var(--white);
      margin-bottom: 0.75rem;
    }
    .wissen-cta p {
      font-size: 1.0625rem;
      color: var(--stone-400);
      max-width: 32em;
      margin: 0 auto 2rem;
      line-height: 1.65;
    }

    /* ── Blog Hero (compact) ─────────────────────── */
    .hero--blog {
      position: relative;
      min-height: 40vh;
      display: flex;
      align-items: center;
      background: var(--stone-100);
      overflow: hidden;
    }
    .hero--blog .container {
      position: relative;
      z-index: 1;
      padding-top: 3rem;
      padding-bottom: 3rem;
    }
    .hero--blog .hero-content {
      max-width: 640px;
    }
    .hero--blog h1 {
      font-family: var(--font-serif);
      font-size: clamp(2.25rem, 4.5vw, 3.5rem);
      line-height: 1.1;
      letter-spacing: -0.02em;
      color: var(--stone-900);
      margin-bottom: 1rem;
    }
    .hero--blog .hero-desc {
      font-size: clamp(1rem, 1.4vw, 1.125rem);
      line-height: 1.65;
      color: var(--stone-500);
      max-width: 520px;
    }

    /* ── Blog Grid ────────────────────────────────── */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gap);
    }
    .blog-card {
      background: var(--white);
      border: 1px solid var(--stone-200);
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
    }
    .blog-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(42, 36, 30, 0.1);
      border-color: var(--stone-300);
    }
    .blog-card-img {
      aspect-ratio: 16 / 9;
      background: var(--stone-100);
      overflow: hidden;
      position: relative;
    }
    .blog-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .blog-card:hover .blog-card-img img {
      transform: scale(1.05);
    }
    .blog-card-img .placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--stone-400);
      font-size: 0.875rem;
      font-weight: 500;
    }
    .blog-card-body {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .blog-card-date {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--stone-400);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 0.625rem;
    }
    .blog-card-body h3 {
      font-family: var(--font-serif);
      font-size: 1.1875rem;
      color: var(--stone-900);
      margin-bottom: 0.5rem;
      line-height: 1.3;
    }
    .blog-card-body p {
      font-size: 0.9375rem;
      color: var(--stone-500);
      line-height: 1.65;
      flex: 1;
      margin-bottom: 1rem;
    }
    .blog-card-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--red);
      transition: gap 0.3s;
    }
    .blog-card:hover .blog-card-link {
      gap: 0.7rem;
    }

    /* ── Responsive ───────────────────────────────── */
    @media (max-width: 1024px) {
      .hub-grid { grid-template-columns: 1fr; }
      .compare-grid { grid-template-columns: 1fr; }
      .app-grid { grid-template-columns: repeat(2, 1fr); }
      .know-grid { grid-template-columns: repeat(2, 1fr); }
      .blog-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 640px) {
      .cta-dark-actions { flex-direction: column; align-items: center; }
      .app-grid { grid-template-columns: 1fr; }
      .know-grid { grid-template-columns: 1fr; }
      .hero--blog { min-height: 35vh; }
      .blog-grid { grid-template-columns: 1fr; }
    }
