/* ==========================================================================
   VETOSEC — Referenzen Overview Page Styles
   ========================================================================== */

.rf-page {
  background: var(--bg-page, #030405);
  color: var(--text-body, #b4bac3);
  padding: 1.5rem 0 5rem;
}

.rf-container {
  max-width: var(--container-main, 1100px);
  margin: 0 auto;
  padding: 0 var(--site-gutter, clamp(20px, 4vw, 64px));
}

.rf-page .sp-breadcrumb {
  margin-bottom: 2.2rem;
  font-size: 0.85rem;
  color: var(--text-muted, #666d77);
}

.rf-page .sp-breadcrumb a {
  color: var(--text-secondary, #8c939e);
  text-decoration: none;
  transition: color 0.15s ease;
}

.rf-page .sp-breadcrumb a:hover {
  color: var(--text-primary, #f4f5f7);
}

.rf-page .sp-breadcrumb [aria-current="page"] {
  color: var(--text-primary, #f4f5f7);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   1. Intro section
   -------------------------------------------------------------------------- */

.rf-intro {
  margin-bottom: clamp(2.8rem, 5vw, 4.2rem);
}

.rf-intro .sp-eyebrow {
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--text-secondary, #8c939e);
  text-transform: uppercase;
}

.rf-intro-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary, #f4f5f7);
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 820px;
}

.rf-intro-lead {
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  line-height: 1.55;
  color: var(--text-body, #b4bac3);
  max-width: 760px;
  margin: 0 0 0.5rem;
}

.rf-intro-sub {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text-muted, #666d77);
  max-width: 720px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   2. Featured Reference: Ring-Gruppe
   -------------------------------------------------------------------------- */

.rf-featured {
  margin-bottom: var(--section-space-md);
}

.rf-featured-card {
  background: var(--bg-raised, #0a0c0f);
  border: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease;
}

.rf-featured-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.rf-featured-media {
  position: relative;
  width: 100%;
  height: clamp(220px, 28vw, 340px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #060709;
}

.rf-featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.82) contrast(1.08);
}

.rf-featured-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(3, 4, 5, 0.1) 0%, rgba(10, 12, 15, 0.5) 65%, rgba(10, 12, 15, 0.95) 100%);
  pointer-events: none;
}

.rf-featured-content {
  padding: clamp(1.8rem, 4vw, 3rem);
}

.rf-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rf-meta-row .sp-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-secondary, #8c939e);
  text-transform: uppercase;
}

.rf-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary, #8c939e);
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.02em;
}

.rf-featured-title {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-primary, #f4f5f7);
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
}

.rf-featured-summary {
  font-size: clamp(1.05rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-body, #b4bac3);
  max-width: 860px;
  margin: 0 0 1.8rem;
}

/* Restored Logo Strip */
.rf-ring-strip {
  margin: 1.8rem 0 2.2rem;
  padding: 1.4rem 1.6rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.rf-ring-strip-label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #666d77);
}

.rf-ring-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.rf-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.rf-logo-plate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border-color: #ffffff;
}

.rf-logo-plate:focus-visible {
  outline: 2px solid var(--status-success, #20ad68);
  outline-offset: 3px;
}

.rf-logo-plate img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Value tags */
.rf-value-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.rf-value-tags li {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e6e9ee;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.01em;
}

/* Compact meta columns */
.rf-meta-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rf-meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rf-meta-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary, #8c939e);
}

.rf-meta-col-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-body, #b4bac3);
}

/* --------------------------------------------------------------------------
   3. & 4. Reference Grid
   -------------------------------------------------------------------------- */

.rf-grid-section {
  margin-bottom: clamp(3.2rem, 6vw, 5rem);
}

.rf-grid {
  display: grid;
  gap: var(--section-space-md);
}

.rf-grid-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.rf-card {
  background: var(--bg-raised, #0a0c0f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.rf-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Card 1: Incident response spans full 2-columns with side-by-side layout */
.rf-card--incident {
  display: grid;
  grid-template-columns: 440px 1fr;
  align-items: stretch;
}

.rf-card--incident .rf-card-media {
  position: relative;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #060709;
}

.rf-card--incident .rf-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) contrast(1.1);
}

.rf-card--incident .rf-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, rgba(10, 12, 15, 0.4) 100%);
  pointer-events: none;
}

.rf-card-body {
  padding: clamp(1.8rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rf-card-header {
  margin-bottom: 0.8rem;
}

.rf-card-title {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary, #f4f5f7);
  letter-spacing: -0.01em;
  margin: 0.4rem 0 0.75rem;
}

.rf-card-summary {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-body, #b4bac3);
  margin: 0 0 1.6rem;
  flex-grow: 1;
}

.rf-card .rf-value-tags {
  margin-bottom: 0;
}

/* Brand plate for logo cards (Uni Klagenfurt & Pauat) */
.rf-card-brand-plate {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rf-card-brand-plate img {
  display: block;
  max-height: 64px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.rf-card-brand-plate--pauat img {
  max-height: 76px;
}

/* --------------------------------------------------------------------------
   5. Closing CTA block
   -------------------------------------------------------------------------- */

.rf-closing {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.rf-closing-card {
  background: var(--bg-raised, #0a0c0f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.rf-closing-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--status-success, #20ad68);
}

.rf-closing .sp-eyebrow {
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-secondary, #8c939e);
  text-transform: uppercase;
}

.rf-closing-headline {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary, #f4f5f7);
  letter-spacing: -0.015em;
  margin: 0.4rem 0 0.8rem;
  max-width: 760px;
}

.rf-closing-copy {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-body, #b4bac3);
  margin: 0 0 1.8rem;
  max-width: 720px;
}

.rf-closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* --------------------------------------------------------------------------
   Responsive adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .rf-card--incident {
    grid-template-columns: 1fr;
  }

  .rf-card--incident .rf-card-media {
    height: 240px;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .rf-card--incident .rf-card-media::after {
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 12, 15, 0.5) 100%);
  }

  .rf-meta-cols {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .rf-featured {
    margin-bottom: var(--section-space-sm);
  }

  .rf-grid {
    gap: var(--section-space-sm);
  }

  .rf-grid-row {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .rf-ring-logos {
    flex-direction: column;
    align-items: stretch;
  }

  .rf-logo-plate {
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .rf-closing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rf-closing-actions .sp-btn {
    width: 100%;
    justify-content: center;
  }
}
