/* Biyosistem Med GmbH – Redesign 2024 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --red:        #C0272D;
  --red-dark:   #9e1f24;
  --red-soft:   rgba(192, 39, 45, 0.08);
  --dark:       #1a1a1a;
  --dark-mid:   #222222;
  --white:      #ffffff;
  --light:      #f8f8f8;
  --light-mid:  #efefef;
  --gray:       #6b7280;
  --gray-light: #9ca3af;
  --border:     #e5e7eb;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius:     8px;
  --radius-sm:  4px;
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ========================
   SCROLL ANIMATIONS
======================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ========================
   HEADER / NAV
======================== */
.site-header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.logo-name span { color: var(--red); }

.logo-tagline {
  font-size: 0.65rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a, .main-nav .nav-dropdown > a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--red);
  background: var(--red-soft);
  text-decoration: none;
}

.nav-dropdown { position: relative; }

.nav-dropdown:hover .dropdown-menu { 
  display: block;
  animation: dropdownFade 0.18s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.dropdown-menu a:last-child { border-bottom: none; }

.dropdown-menu a:hover {
  background: var(--red-soft);
  color: var(--red);
  text-decoration: none;
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover { 
  background: var(--red-dark) !important; 
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: 0.3s;
  border-radius: 2px;
}

/* ========================
   BREADCRUMB
======================== */
.breadcrumb {
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 2rem;
  font-size: 0.8rem;
  color: var(--gray);
}

.breadcrumb-inner a { color: var(--gray); }
.breadcrumb-inner a:hover { color: var(--red); }
.breadcrumb-inner span { margin: 0 0.4rem; opacity: 0.5; }

/* ========================
   HERO
======================== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1579154204601-01588f351e67?w=1600&q=80');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.35;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.85) 0%, rgba(17,24,39,0.4) 60%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(192, 39, 45, 0.18);
  border: 1px solid rgba(192, 39, 45, 0.35);
  color: #f8a0a4;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--white);
  font-weight: 800;
  line-height: 1.12;
  max-width: 680px;
  margin-bottom: 1.4rem;
  letter-spacing: -0.5px;
}

.hero h1 em {
  color: #ffffff;
  font-style: normal;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ========================
   BUTTONS
======================== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.925rem;
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  box-shadow: 0 2px 8px rgba(192,39,45,0.25);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  text-decoration: none;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(192,39,45,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.45);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  text-decoration: none;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ========================
   STATS BAR
======================== */
.stats-bar {
  background: var(--dark-mid);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stats-inner > div {
  padding: 0.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stats-inner > div:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  display: block;
  color: var(--red);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.4rem;
  font-weight: 500;
}

/* ========================
   SECTIONS
======================== */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--dark);
}

.bg-dark .section-title { color: var(--white); }

.section-title span { color: inherit; }

.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 580px;
  line-height: 1.65;
}

.section-divider {
  width: 40px;
  height: 3px;
  background: var(--red);
  margin: 0.85rem 0 1.75rem;
  border-radius: 2px;
}

.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: var(--white); }

/* ========================
   CARDS / GRID
======================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
  align-items: center;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(192,39,45,0.2);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body { padding: 1.5rem; }

.card-badge {
  display: inline-block;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.card h3 { 
  font-size: 1.05rem; 
  font-weight: 700; 
  margin-bottom: 0.6rem; 
  line-height: 1.35;
  color: var(--dark);
}
.card p { 
  font-size: 0.875rem; 
  color: var(--gray); 
  margin-bottom: 1.25rem; 
  line-height: 1.65;
}

/* Bild-Platzhalter */
.img-placeholder {
  background: linear-gradient(135deg, #e8eaed 0%, #d1d5db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #9ca3af;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--radius-sm);
}

.img-placeholder-wide {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
}

/* ========================
   FEATURE LIST
======================== */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.55;
}

.feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--red-soft);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0272D' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  min-width: 18px;
}

/* ========================
   CTA BANNER
======================== */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  padding: 4.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.07;
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.05;
  pointer-events: none;
}

.cta-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.85rem;
  letter-spacing: -0.3px;
}

.cta-banner p {
  color: rgba(255,255,255,.65);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-banner .btn-primary {
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
}

/* ========================
   PRODUCT PAGE
======================== */
.product-hero {
  background: var(--light);
  padding: 3.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.product-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.product-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  letter-spacing: 1.2px;
}

.product-title { 
  font-size: clamp(1.5rem, 3vw, 2rem); 
  font-weight: 800; 
  margin-bottom: 0.85rem; 
  letter-spacing: -0.3px;
}
.product-subtitle { color: var(--gray); margin-bottom: 1.75rem; line-height: 1.65; }

/* ========================
   SPECS TABLE
======================== */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specs-table th, .specs-table td {
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.specs-table th {
  background: var(--dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specs-table tr:nth-child(even) td { background: var(--light); }

.specs-table tr:hover td { background: var(--red-soft); }

/* ========================
   CONTACT FORM
======================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(192,39,45,0.15);
}

.form-group { margin-bottom: 1.35rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 39, 45, 0.1);
}

.form-group textarea { resize: vertical; min-height: 150px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* ========================
   FOOTER
======================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 4rem 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.85rem;
  letter-spacing: -0.3px;
}

.footer-logo-name span { color: var(--red); }

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,.5);
}

.footer-badge {
  display: inline-block;
  background: rgba(192,39,45,0.12);
  border: 1px solid rgba(192,39,45,0.2);
  color: rgba(255,255,255,.5);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.site-footer h4 {
  color: rgba(255,255,255,.85);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,.5);
  font-size: 0.875rem;
  transition: color var(--transition);
  font-weight: 400;
}

.footer-links a:hover {
  color: rgba(255,255,255,.9);
  text-decoration: none;
}

.footer-contact p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: rgba(255,255,255,.5);
}

.footer-contact a {
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--red);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,.3); }
.footer-bottom a:hover { color: var(--red); text-decoration: none; }

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 680px) {
  .site-header .header-inner {
    padding: 0 1.25rem;
  }

  .main-nav { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 72px; 
    left: 0; 
    right: 0; 
    background: var(--white); 
    border-top: 2px solid var(--red);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem; 
    box-shadow: var(--shadow-lg);
    gap: 0.25rem;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .dropdown-menu { 
    position: static; 
    box-shadow: none; 
    border: none; 
    padding-left: 1rem; 
    border-top: none;
    border-radius: 0;
  }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }

  .hero { min-height: 480px; }
  .hero-inner { padding: 4rem 1.25rem 3.5rem; }

  .section { padding: 3.5rem 1.25rem; }

  .footer-inner { 
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .stats-inner > div { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 1.5rem; }
  .stats-inner > div:last-child { border-bottom: none; }

  .cta-banner { padding: 3rem 1.25rem; }
}

/* ========================
   SCROLL OBSERVER INIT
======================== */
/* Applied via JS in HTML — see inline script */
