/* MedInventPro Design-System
   Farben abgeleitet aus dem Logo: Tiefblau-Kachel + Slate-Wortmarke */
:root {
  --blue: #14549e;
  --blue-deep: #0d3b73;
  --blue-ink: #082747;
  --blue-soft: #e8f0fa;
  --ink: #22272b;
  --slate: #5b6b7a;
  --paper: #f7f9fb;
  --white: #ffffff;
  --line: #dde5ee;
  --check: #2e9e6b; /* Bestätigungs-Grün, sparsam: nur für Checkmarken */
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 10px 30px rgba(8, 39, 71, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(8, 39, 71, 0.06), 0 8px 24px rgba(8, 39, 71, 0.05);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); font-weight: 700; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 14px rgba(20, 84, 158, 0.35); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: var(--white); color: var(--blue-deep); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); }
.main-nav .btn { padding: 9px 18px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--blue-ink) 0%, var(--blue-deep) 45%, var(--blue) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* Signatur: großer Logo-Haken als stilles Wasserzeichen */
  content: "";
  position: absolute; right: -140px; bottom: -180px;
  width: 560px; height: 560px; opacity: 0.08;
  background: url("medinventpro-dark.png") no-repeat left center / auto 100%;
  pointer-events: none;
}
/* Liquid Glass: weiche, langsam treibende Licht-Blobs im Hero */
.hero .blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: 0.45; pointer-events: none; will-change: transform;
}
.hero .blob-1 { width: 420px; height: 420px; left: -120px; top: -140px; background: radial-gradient(circle, #2f7fd4, transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.hero .blob-2 { width: 360px; height: 360px; right: 12%; top: 30%; background: radial-gradient(circle, #6fb3ef, transparent 70%); animation: drift 22s ease-in-out -6s infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}
/* Glas-Panel (Liquid Glass) – auf dunklen wie hellen Flächen nutzbar */
.glass {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 12px 32px rgba(8, 39, 71, 0.18);
}
.glass-light {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 32px rgba(8, 39, 71, 0.08);
}
.hero-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.hero-stats .glass { padding: 16px 22px; color: var(--white); }
.hero-stats .glass strong { display: block; font-size: 1.15rem; }
.hero-stats .glass span { font-size: 0.82rem; color: #c3d8f0; }
.hero .wrap { padding: 88px 24px 96px; position: relative; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #9fc3ee; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.12; font-weight: 800;
  letter-spacing: -0.02em; max-width: 720px;
}
.hero p.lead { margin: 22px 0 34px; font-size: 1.15rem; color: #d6e4f5; max-width: 620px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 28px; font-size: 0.85rem; color: #9fc3ee; }

/* Kompakter Hero für Unterseiten */
.hero.hero-sub .wrap { padding: 56px 24px 60px; }
.hero.hero-sub h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--blue); }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; }
.section-head p { margin-top: 12px; color: var(--slate); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--blue); }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--slate); }
.card a.more { display: inline-block; margin-top: 12px; font-size: 0.88rem; font-weight: 600; }

/* Checkliste (Signatur-Motiv aus dem Logo) */
.checklist { list-style: none; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border-radius: 5px; background: var(--blue);
}
.checklist li::after {
  content: ""; position: absolute; left: 4px; top: 8px; width: 9px; height: 5px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg);
}

/* Zielgruppen-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 0.9rem; color: var(--ink); font-weight: 500;
}

/* ---------- Pricing ---------- */
.price-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card .plan { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.price-card .price { font-size: 2.4rem; font-weight: 800; margin: 10px 0 2px; letter-spacing: -0.02em; }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--slate); }
.price-card .desc { color: var(--slate); font-size: 0.92rem; margin-bottom: 20px; }
.price-card .checklist { flex: 1; margin-bottom: 24px; font-size: 0.92rem; }
.price-card .checklist li { margin-bottom: 10px; }
.price-card.featured { border: 2px solid var(--blue); position: relative; box-shadow: var(--shadow); }
.price-card.featured .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white); font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; letter-spacing: 0.05em;
}
.price-note { margin-top: 26px; font-size: 0.85rem; color: var(--slate); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 18px 22px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--slate); font-size: 0.95rem; }

/* ---------- CTA Band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: var(--white); text-align: center; }
.cta-band .wrap { padding: 70px 24px; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.cta-band p { margin: 14px auto 30px; color: #d6e4f5; max-width: 540px; }

/* ---------- Kontakt ---------- */
.contact-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.contact-box h3 { margin-bottom: 8px; }
.contact-box p { color: var(--slate); font-size: 0.95rem; }
.contact-box .btn { margin-top: 18px; }

/* ---------- Prose (Impressum etc.) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 32px 0 10px; font-size: 1.25rem; }
.prose p { margin-bottom: 14px; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-ink); color: #9fb6d0; padding: 56px 0 32px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer img { height: 40px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
.site-footer a { color: #9fb6d0; display: block; margin-bottom: 8px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer p { font-size: 0.9rem; max-width: 320px; }

/* ---------- Funktionale Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
/* Gestaffelte Reveals innerhalb von Grids: Reihenfolge = Leserichtung */
.grid > .reveal:nth-child(2) { transition-delay: .07s; }
.grid > .reveal:nth-child(3) { transition-delay: .14s; }
.grid > .reveal:nth-child(4) { transition-delay: .21s; }
.grid > .reveal:nth-child(5) { transition-delay: .07s; }
.grid > .reveal:nth-child(6) { transition-delay: .14s; }
.grid > .reveal:nth-child(7) { transition-delay: .21s; }
.grid > .reveal:nth-child(8) { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
  .hero .blob { animation: none; }
}

/* ---------- Referenzen ---------- */
.ref-card { position: relative; }
.ref-card .quote { font-size: 1.02rem; color: var(--ink); margin-bottom: 18px; }
.ref-card .who { font-size: 0.88rem; color: var(--slate); }
.ref-card.placeholder { border-style: dashed; background: transparent; }
.ref-card.placeholder:hover { transform: none; box-shadow: none; }
.ref-logo-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.ref-logo-row .slot {
  flex: 1 1 150px; height: 64px; border: 1px dashed var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-size: 0.8rem; background: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px; gap: 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero .wrap { padding: 64px 24px 72px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .hero::after { width: 360px; height: 360px; right: -120px; bottom: -140px; }
}
