/* ===========================================================================
   MedTag Website — Shared Styles
   Helles, luftiges Theme mit MedTag-Blau; Look angelehnt an powerfulmedical.com
   (weiße Flächen, dunkler Navy-Text, blauer Akzent, dunkler Footer)
   =========================================================================== */

:root {
  /* Backgrounds */
  --bg:            #ffffff;
  --bg-soft:       #f5f8fd;   /* leicht getönte Sektionen */
  --bg-tint:       #eef3fc;   /* blaustichiger Block */
  --surface:       #ffffff;   /* Karten */
  --border:        #e5eaf3;
  --border-strong: #d7deec;

  /* Brand */
  --blue:          #1a3bcc;   /* MedTag Markenblau */
  --blue-dark:     #1530b0;
  --blue-bright:   #2f5bff;   /* lebendiger für Hover/Gradients */
  --blue-tint:     #eaf0ff;   /* heller Icon-Hintergrund */
  --gold:          #f59e0b;

  /* Text */
  --text:          #0e1430;   /* dunkles Navy für Headlines */
  --text-body:     #45506b;   /* Fließtext */
  --text-muted:    #6b7793;
  --text-dim:      #94a0b8;

  /* Footer (dunkel) */
  --footer-bg:     #0b1026;
  --footer-surf:   #141b38;
  --footer-border: #232c50;
  --footer-text:   #aab3c8;

  /* Effects */
  --radius:        16px;
  --radius-sm:     11px;
  --radius-lg:     24px;
  --shadow-sm:     0 2px 10px rgba(16, 28, 70, 0.05);
  --shadow:        0 16px 44px rgba(16, 28, 70, 0.10);
  --shadow-blue:   0 14px 34px rgba(26, 59, 204, 0.25);
  --container:     1180px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

h1, h2, h3, h4 { line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; color: var(--text); }
h1 { font-size: clamp(2.45rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.26rem); color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* ---------- Icons ---------- */
.ic svg, .visual svg, .store-badge svg, .social svg { width: 100%; height: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: linear-gradient(135deg, var(--blue-bright), var(--blue)); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(26,59,204,.34); }
.btn--ghost { background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* "Bald verfügbar" Store-Badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 18px; border-radius: 13px;
  background: #fff; border: 1px solid var(--border-strong); min-width: 196px;
  box-shadow: var(--shadow-sm);
}
.store-badge .glyph { width: 24px; height: 24px; color: var(--text); flex: none; }
.store-badge small { display: block; font-size: 11px; color: var(--text-dim); letter-spacing: .04em; }
.store-badge strong { font-size: 15px; font-weight: 700; color: var(--text); }
.store-badge .soon { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: #9a6300; background: rgba(245,158,11,.16); padding: 3px 8px; border-radius: 999px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 10px; padding: 6px;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue)); object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-links .mobile-cta { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 104px 0 92px; text-align: center; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 0%, var(--bg-tint), #fff 70%); }
.hero::after {
  content: ""; position: absolute; inset: -30% 0 auto 50%; transform: translateX(-50%);
  width: 900px; height: 560px; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(47,91,255,.16), rgba(47,91,255,0) 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; margin: 0 auto 22px; }
.hero h1 .grad { color: var(--blue); }
.hero .lead { max-width: 58ch; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px;
  background: var(--blue-tint); border: 1px solid rgba(26,59,204,.16);
  font-size: 13px; font-weight: 600; color: var(--blue);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

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

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; padding: 13px; color: var(--blue);
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--blue-tint);
}
.card h3 { margin-bottom: 10px; color: var(--text); }
.card p { color: var(--text-body); font-size: 15.5px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: var(--blue); }
.stat .label { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  margin-bottom: 18px; box-shadow: var(--shadow-blue);
}
.step h3 { margin-bottom: 8px; color: var(--text); }
.step p { color: var(--text-body); font-size: 15px; }

/* ---------- Feature split (alternating) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 84px; }
.split .visual {
  background: linear-gradient(160deg, var(--bg-tint), #fff);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  min-height: 300px; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.split .visual svg { width: 96px; height: 96px; color: var(--blue); }
.split ul { list-style: none; margin-top: 20px; display: grid; gap: 13px; }
.split ul li { position: relative; padding-left: 32px; color: var(--text-body); }
.split ul li svg { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: var(--blue); }

/* ---------- CTA band ---------- */
.cta {
  text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  border-radius: var(--radius-lg); padding: 66px 32px; box-shadow: var(--shadow-blue);
}
.cta h2 { margin-bottom: 14px; color: #fff; }
.cta p { color: #dfe6ff; max-width: 52ch; margin: 0 auto 28px; }
.cta .btn--light { background: #fff; color: var(--blue); }
.cta .btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.18); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.form { display: grid; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 15px;
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,59,204,.14); }
.field textarea { min-height: 152px; resize: vertical; }
.info-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.info-card + .info-card { margin-top: 20px; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text); }
.info-card a { color: var(--blue); font-weight: 600; }
.info-card a:hover { color: var(--blue-dark); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { margin-bottom: 12px; }
.legal .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; color: var(--text); }
.legal p, .legal li { color: var(--text-body); font-size: 16px; }
.legal a { color: var(--blue); font-weight: 600; }
.legal ul { margin: 12px 0 12px 22px; display: grid; gap: 6px; }
.legal-text { white-space: pre-wrap; word-wrap: break-word; color: var(--text-body);
  font-size: 15.5px; line-height: 1.75; }

/* ---------- Footer (dunkel) ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 66px 0 32px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--footer-text); font-size: 14.5px; max-width: 34ch; }
.footer-col h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #7c87a5; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--footer-text); font-size: 14.5px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--footer-surf); border: 1px solid var(--footer-border); color: #cdd5e8; transition: .15s; }
.social a svg { width: 19px; height: 19px; }
.social a:hover { border-color: var(--blue-bright); color: #fff; transform: translateY(-2px); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--footer-border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  color: #7c87a5; font-size: 13.5px; }
.footer-bottom .legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom .legal-links a:hover { color: #fff; }
.disclaimer-note { margin-top: 16px; color: var(--text-dim); font-size: 12.5px; max-width: 70ch; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===========================================================================
   RESPONSIVE / MOBILE
   =========================================================================== */
@media (max-width: 980px) {
  .grid-3, .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split .visual { min-height: 220px; }
  .split.reverse-mobile > *:first-child { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { padding: 68px 0; }
  .section--tight { padding: 48px 0; }
  .section-head { margin-bottom: 40px; }

  /* Mobile-Navigation */
  .nav { height: 64px; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(16,28,70,.10);
    transform: translateY(-130%); transition: transform .28s ease;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 18px; font-size: 16px; color: var(--text); }
  .nav-links .mobile-cta { display: block; padding: 14px 18px; border-bottom: 0; }
  .nav-links .mobile-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-actions .btn:not(.nav-toggle) { display: none; } /* CTA wandert ins Menü */

  .hero { padding: 72px 0 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badges { flex-direction: column; align-items: stretch; }
  .store-badge { width: 100%; }

  .grid-3, .grid-4, .stats, .footer-grid { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .card { padding: 26px; }
  .cta { padding: 48px 22px; }
  .cta .btn { width: 100%; justify-content: center; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
