/* ================================================================
   BONAFIDE — Clinical Precision Design System
   ================================================================
   A medical research landing page styled with the restraint and
   rigor of a well-designed clinical publication. Every element
   communicates trust, competence, and quiet confidence.

   Brand: IKF Hamburg
   Primary:   #4B5F78  (Slate Blue)
   Secondary: #659F8C  (Teal Green)
   Dark:      #00283C
   Light:     #BEDCD2
   Text:      #2C3A42
   Faded:     #8A97A7
   ================================================================ */


/* ----------------------------------------------------------------
   0. ALTERNATE COLOR SCHEME FIX
   Override Zephyr's default purple/orange alternate scheme
   with IKF brand colors across all custom properties.
   ---------------------------------------------------------------- */

.color_alternate {
  --color-alt-content-link: #4B5F78;
  --color-alt-content-link-hover: #659F8C;
  --color-alt-content-primary: #4B5F78;
  --color-alt-content-primary-grad: #4B5F78;
  --color-alt-content-secondary: #659F8C;
  --color-alt-content-secondary-grad: #659F8C;
  --color-alt-content-heading: #2C3A42;
  --color-alt-content-heading-grad: #2C3A42;
  --color-alt-content-overlay: rgba(75, 95, 120, 0.85);
  --color-alt-content-overlay-grad: rgba(75, 95, 120, 0.85);
}

/* Belt-and-suspenders: direct property overrides for elements
   that may read from the alt content vars */
.color_alternate a:not(.w-btn):not(.w-header-show):not([class*="w-nav"]) {
  color: #4B5F78;
}
.color_alternate a:not(.w-btn):not(.w-header-show):not([class*="w-nav"]):hover {
  color: #659F8C;
}
.color_alternate .w-iconbox.color_primary .w-iconbox-icon {
  color: #4B5F78 !important;
}
.color_alternate .w-counter.color_primary .w-counter-value {
  color: #4B5F78 !important;
}
.color_alternate .w-btn.color_primary {
  background: #4B5F78 !important;
}


/* ----------------------------------------------------------------
   1. HERO (#hero)
   Atmospheric, confident, authoritative.
   ---------------------------------------------------------------- */

#hero {
  position: relative;
}

/* Gradient vignette at the bottom for depth */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(0, 20, 35, 0.35) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

#hero > .l-section-h {
  position: relative;
  z-index: 2;
}

/* Title: restrained authority */
#hero h1 {
  text-shadow: 0 2px 40px rgba(0, 20, 35, 0.4);
}

/* Separator line in hero */
#hero .w-separator-line {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/* CTA button in hero */
#hero .w-btn {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  background: transparent !important;
  letter-spacing: 0.06em;
  transition: all 0.35s ease;
  backdrop-filter: blur(2px);
}
#hero .w-btn:hover {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

/* Thin accent line at the very bottom of hero */
#hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #659F8C 30%,
    #4B5F78 70%,
    transparent 100%
  );
  z-index: 3;
}


/* ----------------------------------------------------------------
   2. FACIAL FEEDBACK (#facial-feedback)
   Clean two-column. Image feels considered, not accidental.
   ---------------------------------------------------------------- */

#facial-feedback {
  overflow: hidden;
}

#facial-feedback .w-image {
  border-radius: 4px;
  overflow: hidden;
}

/* Subtle reveal on the section */
#facial-feedback .vc_column-inner > .wpb_wrapper > .wpb_text_column:first-child {
  position: relative;
}


/* ----------------------------------------------------------------
   3. STUDY CARDS (#forschung)
   Inspired by journal article listings. Clean, scannable,
   with subtle interactive feedback.
   ---------------------------------------------------------------- */

.bonafide-studies-list {
  max-width: 860px;
  margin: 0 auto;
}

.bonafide-studies-list .bonafide-study-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: 1px solid var(--color-alt-content-border, #e0e0e0);
  border-left: 3px solid transparent;
  border-radius: 3px;
  margin-bottom: 8px;
  background: var(--color-alt-content-bg-alt, #fff);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.bonafide-studies-list .bonafide-study-item:hover {
  border-left-color: #659F8C;
  box-shadow: 0 2px 16px rgba(75, 95, 120, 0.08);
  transform: translateX(2px);
}

.bonafide-study-item .study-content {
  flex: 1;
  min-width: 0;
}

.bonafide-study-item .study-content h4 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: #2C3A42;
}

.bonafide-study-item .study-meta {
  color: #8A97A7;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

.bonafide-study-item .study-meta em {
  font-style: normal;
  color: #4B5F78;
  font-weight: 500;
}

/* The download link is wrapped in a <p> by WordPress */
.bonafide-study-item > p {
  margin: 0;
  flex-shrink: 0;
  margin-left: 20px;
}

.bonafide-study-item .study-download {
  display: inline-block;
  white-space: nowrap;
  padding: 5px 14px;
  border: 1px solid #659F8C;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #659F8C;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.bonafide-study-item .study-download:hover {
  background: #659F8C;
  color: #fff;
  text-decoration: none;
}


/* ----------------------------------------------------------------
   4. COUNTERS & NETWORK (#netzwerk)
   Numbers speak volumes. Make them prominent.
   ---------------------------------------------------------------- */

#netzwerk .w-counter {
  padding: 15px 10px;
}

/* Override the absurd h6 size (theme sets it to 2.5rem) */
#netzwerk .w-counter-title,
.l-section .w-counter .w-counter-title {
  font-size: 0.82rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8A97A7 !important;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.3;
}

#netzwerk .w-counter-value {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  color: #4B5F78;
}

/* Subtle top accent on each counter column */
#netzwerk .vc_column_container > .vc_column-inner {
  position: relative;
}
#netzwerk .vc_column_container > .vc_column-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: #659F8C;
  border-radius: 1px;
}

/* Logo bar */
.bonafide-logo-bar {
  padding: 10px 0;
}

.bonafide-logo-bar .w-image {
  max-width: 150px;
  margin: 8px 22px !important;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all 0.4s ease;
}

.bonafide-logo-bar .w-image:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.bonafide-logo-bar img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}


/* ----------------------------------------------------------------
   5. BONAFIDE-STUDIE (#studie)
   Icon boxes present the study's key parameters with clarity.
   ---------------------------------------------------------------- */

#studie .w-iconbox,
#studie ~ .l-section.color_alternate .w-iconbox {
  padding: 20px 10px;
  transition: transform 0.3s ease;
}

#studie .w-iconbox:hover,
#studie ~ .l-section.color_alternate .w-iconbox:hover {
  transform: translateY(-2px);
}

#studie .w-iconbox-icon,
#studie ~ .l-section.color_alternate .w-iconbox-icon {
  margin-bottom: 14px;
}

#studie .w-iconbox-icon i,
#studie ~ .l-section.color_alternate .w-iconbox-icon i {
  font-size: 42px !important;
  color: #659F8C !important;
  transition: color 0.3s ease;
}

#studie .w-iconbox:hover .w-iconbox-icon i,
#studie ~ .l-section.color_alternate .w-iconbox:hover .w-iconbox-icon i {
  color: #4B5F78 !important;
}

#studie .w-iconbox-title,
#studie ~ .l-section.color_alternate .w-iconbox-title {
  font-size: 1.05rem !important;
  color: #2C3A42;
  margin-bottom: 6px;
}

#studie .w-iconbox-text,
#studie ~ .l-section.color_alternate .w-iconbox-text {
  color: #666;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Study design image placeholder — make it look intentional */
#studie ~ .l-section.color_alternate .w-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 40, 60, 0.08);
}


/* ----------------------------------------------------------------
   6. WORKSHOPS (#workshops)
   Date-card pattern: compact, scannable, professional.
   ---------------------------------------------------------------- */

.bonafide-workshop-item {
  padding: 12px 16px !important;
  background: rgba(75, 95, 120, 0.04);
  border-radius: 3px;
  margin-bottom: 6px !important;
  border-left: 3px solid #659F8C;
  transition: all 0.25s ease;
}

.bonafide-workshop-item:hover {
  background: rgba(75, 95, 120, 0.07);
  border-left-color: #4B5F78;
  transform: translateX(2px);
}

/* Workshop image column: subtle border radius */
#workshops .vc_column-inner[style*="background-image"] {
  border-radius: 4px;
  overflow: hidden;
}


/* ----------------------------------------------------------------
   7. ANWENDUNG (#anwendung)
   Balanced two-column with icon accent.
   ---------------------------------------------------------------- */

#anwendung .w-iconbox {
  padding: 18px 10px;
  margin-bottom: 5px;
}

#anwendung .w-iconbox-icon i {
  font-size: 34px !important;
  color: #659F8C !important;
}

#anwendung .w-iconbox-title {
  font-size: 0.98rem !important;
  color: #2C3A42;
}

#anwendung .w-iconbox-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
}


/* ----------------------------------------------------------------
   8. ÜBER UNS (#ueber-uns)
   Dignified team presentation. Vita as timeline.
   ---------------------------------------------------------------- */

/* Profile images */
#ueber-uns ~ .l-section .w-image img {
  border-radius: 4px;
}

/* Vita timeline */
.bonafide-vita-timeline {
  margin: 0;
  padding: 0;
}

.bonafide-vita-timeline .vita-entry {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.bonafide-vita-timeline .vita-entry:last-child {
  border-bottom: none;
}

.bonafide-vita-timeline .vita-entry:hover {
  background: rgba(75, 95, 120, 0.02);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 3px;
}

.bonafide-vita-timeline .vita-year {
  font-weight: 700;
  font-size: 0.88rem;
  color: #4B5F78;
  min-width: 48px;
  flex-shrink: 0;
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}

.bonafide-vita-timeline .vita-content {
  flex: 1;
}

.bonafide-vita-timeline .vita-content strong {
  display: block;
  margin-bottom: 3px;
  color: #2C3A42;
  font-size: 0.95rem;
}

.bonafide-vita-timeline .vita-content p {
  margin: 0;
  color: #666;
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Section separator between persons */
#ueber-uns ~ .l-section .w-separator-line {
  background-color: #f0f0f0 !important;
}

/* Centers list */
.bonafide-centers-list ul {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bonafide-centers-list li {
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: #2C3A42;
  break-inside: avoid;
}

/* Coordinating institutions — subtle cards */
#ueber-uns ~ .l-section .vc_row-inner .vc_column_container {
  transition: transform 0.2s ease;
}
#ueber-uns ~ .l-section .vc_row-inner .vc_column_container:hover {
  transform: translateY(-2px);
}


/* ----------------------------------------------------------------
   9. KONTAKT (#kontakt)
   Form: clean inputs. Sidebar: warm, accessible.
   ---------------------------------------------------------------- */

/* Contact sidebar heading — accent underline */
#kontakt h4 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 22px !important;
}

#kontakt h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: #659F8C;
  border-radius: 1px;
}

/* Contact info paragraphs — tighter spacing */
#kontakt .vc_column-inner > .wpb_wrapper > .wpb_text_column p {
  margin-bottom: 16px;
}

#kontakt .vc_column-inner > .wpb_wrapper > .wpb_text_column strong {
  color: #4B5F78;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ----------------------------------------------------------------
   10. GLOBAL REFINEMENTS
   Subtle touches that create cohesion across all sections.
   ---------------------------------------------------------------- */

/* Section label pattern (the small uppercase text above headings) */
/* These are set via inline styles in the shortcode, but we can
   enhance them globally */

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* All section images get consistent treatment */
.l-section .w-image {
  border-radius: 4px;
  overflow: hidden;
}

/* Icon transition on all iconboxes */
.w-iconbox-icon i {
  transition: color 0.3s ease, transform 0.3s ease;
}
.w-iconbox:hover .w-iconbox-icon i {
  transform: scale(1.05);
}

/* Buttons throughout — ensure brand consistency */
.w-btn.color_primary .w-btn-label,
.w-btn.color_secondary .w-btn-label {
  letter-spacing: 0.03em;
}

/* Links with arrows: subtle nudge on hover */
a[href*="→"]:hover,
a:has(+ .w-btn-label):hover {
  letter-spacing: 0.01em;
}

/* Form inputs — clean, precise */
.w-form-row input[type="text"],
.w-form-row input[type="email"],
.w-form-row textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.w-form-row input[type="text"]:focus,
.w-form-row input[type="email"]:focus,
.w-form-row textarea:focus {
  box-shadow: 0 0 0 3px rgba(101, 159, 140, 0.12);
}


/* ----------------------------------------------------------------
   11. SUBTLE SECTION ENTRY ANIMATIONS
   Restrained fade-in for content as it enters the viewport.
   Uses IntersectionObserver via a tiny inline script (optional),
   but we define the CSS states here.
   ---------------------------------------------------------------- */

@keyframes bonafide-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to key content areas when they come into view.
   The animation is triggered by Zephyr's built-in scroll
   animation system if configured, or can be applied manually. */
.bonafide-studies-list .bonafide-study-item {
  animation: bonafide-fade-up 0.5s ease both;
}
.bonafide-studies-list .bonafide-study-item:nth-child(2) { animation-delay: 0.06s; }
.bonafide-studies-list .bonafide-study-item:nth-child(3) { animation-delay: 0.12s; }
.bonafide-studies-list .bonafide-study-item:nth-child(4) { animation-delay: 0.18s; }
.bonafide-studies-list .bonafide-study-item:nth-child(5) { animation-delay: 0.24s; }


/* ----------------------------------------------------------------
   12. RESPONSIVE ADJUSTMENTS
   ---------------------------------------------------------------- */

@media (max-width: 1024px) {
  #netzwerk .w-counter-value {
    font-size: 2.6rem;
  }

  .bonafide-studies-list .bonafide-study-item {
    padding: 16px 18px;
  }
}

@media (max-width: 768px) {
  /* Study cards: stack */
  .bonafide-studies-list .bonafide-study-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .bonafide-study-item > p {
    margin-left: 0;
    margin-top: 10px;
  }

  /* Vita: stack year above content */
  .bonafide-vita-timeline .vita-entry {
    flex-direction: column;
    gap: 4px;
  }
  .bonafide-vita-timeline .vita-year {
    min-width: auto;
  }
  .bonafide-vita-timeline .vita-entry:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* Centers: single column */
  .bonafide-centers-list ul {
    columns: 1;
  }

  /* Counters: smaller */
  #netzwerk .w-counter-value {
    font-size: 2.2rem;
  }
  #netzwerk .vc_column_container > .vc_column-inner::before {
    display: none;
  }

  /* Logo bar */
  .bonafide-logo-bar .w-image {
    max-width: 100px;
    margin: 6px 12px !important;
  }

  /* Hero adjustments */
  #hero h1 {
    font-size: 2.8rem !important;
    letter-spacing: 0.12em !important;
  }
}

@media (max-width: 500px) {
  #hero h1 {
    font-size: 2.2rem !important;
    letter-spacing: 0.08em !important;
  }

  .bonafide-studies-list .bonafide-study-item {
    padding: 14px 16px;
  }

  .bonafide-study-item .study-content h4 {
    font-size: 0.88rem;
  }
}
