/* MedType – Produktseite (index.html): Startbereich, Ablauf, Funktionen, Datenschutz, Voraussetzungen, Fragen */

.home { --page-w: var(--wide); }
:root {
  --led-blue: #1f6fe5;
  --led-green: #18803a;
}

/* Startbereich */
.hero-band { overflow-x: clip; }
.hero-band::before,
.hero-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-band::before {
  background: radial-gradient(90% 40% at 50% 100%, rgba(255, 59, 48, .75), transparent 70%);
}
.hero-band::after {
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, transparent);
}
.hero-band .band-inner { padding-bottom: 0; }
.hero { display: grid; gap: 2.75rem; padding-top: 2.75rem; }
.hero-app {
  display: flex; align-items: center; gap: .9rem;
  margin: 0 0 1.5rem;
  font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em;
}
.hero-icon {
  width: 72px; height: 72px;
  border-radius: 22.5%;
  box-shadow: 0 12px 30px -8px rgba(60, 0, 10, .6), 0 0 0 1px rgba(255, 255, 255, .4);
}
.hero h1 {
  font-size: clamp(2.5rem, 1.3rem + 5.6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.hero-lead {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  line-height: 1.5;
  max-width: 33rem;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; }
.hero-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.35rem .8rem 1.15rem;
  border-radius: 999px;
  background: #ffffff; color: var(--on-pill);
  font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 28px -12px rgba(60, 0, 10, .75);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.hero-cta svg { width: 1.2rem; height: 1.2rem; flex: none; }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(60, 0, 10, .85); }
.hero-cta:active { transform: translateY(0) scale(.98); box-shadow: 0 8px 18px -10px rgba(60, 0, 10, .75); }
.hero-cta:focus-visible { border-radius: 999px; }
/* Statuszeile und App-Store-Knopf in einer Reihe, mittig ausgerichtet und gleich hoch (2.5rem = 40px, Apples Mindesthöhe) */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.6rem; }
.app-store-badge { display: block; flex: none; line-height: 0; }
.app-store-badge img { display: block; height: 2.5rem; width: auto; }
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  box-sizing: border-box; min-height: 2.5rem;
  margin: 0;
  padding: .3rem .85rem .3rem .7rem;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  color: var(--on-band);
  font-size: .9rem; font-weight: 600;
}
.status-dot { position: relative; width: .5rem; height: .5rem; border-radius: 50%; background: #ffffff; }
.hero-link {
  color: var(--on-band); font-weight: 600;
  text-underline-offset: .3em;
  padding: .5rem 0;
}
.hero-link span { display: inline-block; transition: transform .25s var(--ease-out); }
.hero-link:hover span { transform: translateX(4px); }

.hero-visual {
  --phone: min(44vw, 230px);
  display: grid; place-items: center;
  margin-bottom: -5.5rem;
}
.hero-visual .phone { grid-area: 1 / 1; width: var(--phone); }
.phone--back { translate: -40% -3%; rotate: -8deg; scale: .9; }
.phone--front { translate: 22% 4%; rotate: 4deg; }

/* Handy-Rahmen für Bildschirmfotos */
.phone {
  position: relative;
  overflow: hidden;
  border: 7px solid var(--phone-bezel);
  border-radius: 15% / 7%;
  background: var(--phone-bezel);
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; }

/* Abschnitte */
.section { padding: 4.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.kicker {
  display: flex; align-items: center; gap: .7rem;
  margin: 0 0 .9rem;
  color: var(--accent);
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.kicker::before {
  content: ""; flex: none; width: 1.75rem; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
}
.display {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.lede { font-size: 1.1rem; color: var(--muted); margin: 0; }
.path { font-weight: 600; }

/* So funktioniert's */
.how { padding-top: calc(5.5rem + 3.5rem); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem; }
.how-steps li { position: relative; padding-top: 4.4rem; }
/* Schrittbild: Nummer und Dongle, dessen LED dauerhaft so leuchtet wie am echten Gerät in diesem Schritt
   (langsam blau, schnell blau, grün mit Flackern beim Tippen; Dongle und LED-Muster aus devices.css). */
.how-stick {
  position: absolute; top: 0; left: 0;
  display: flex; align-items: center; gap: .75rem;
  height: 3.1rem;
}
.how-num { min-width: .8em; color: var(--accent); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.how-stick .dv-stick { width: 7.5rem; }
.how-steps h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .45rem; }
.how-steps p { margin: 0; color: var(--muted); }
.how-steps .led-note {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .9rem;
  padding: .3rem .75rem .3rem .6rem;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: .88rem; font-weight: 600; line-height: 1.4;
}
.led-dot { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--led-blue); }
.led-dot--green { background: var(--led-green); }

/* Funktionen: abwechselnd Bild und Text */
.features { padding-bottom: 1rem; }
.feature { display: grid; gap: 2rem; align-items: center; padding: 2.5rem 0; }
.feature-media { margin: 0; }
.stage {
  position: relative;
  display: flex; justify-content: center; align-items: flex-start; gap: .9rem;
  aspect-ratio: 4 / 5;
  padding: 2.75rem 1.5rem 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 70% at 15% 0%, rgba(255, 59, 48, .22), transparent 62%),
    linear-gradient(165deg, var(--surface-2), var(--accent-soft));
}
.stage .phone { width: min(62%, 270px); flex: none; }
/* dunkles Bildschirmfoto auf dunkler Bühne */
.stage--dark {
  background:
    radial-gradient(80% 60% at 85% 100%, rgba(255, 59, 48, .45), transparent 65%),
    linear-gradient(165deg, #2a1d20, var(--ink));
}
.stage--dark .phone { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .14); }
/* breiterer Ausschnitt, größeres Handy am Rand */
.stage--wide { aspect-ratio: 5 / 4; justify-content: flex-end; padding: 2rem 9% 0 0; }
.stage--wide .phone { width: min(70%, 330px); rotate: 3deg; transform-origin: 50% 0; }
/* zwei Handys, das zweite überlappt */
.stage--duo { gap: 0; padding-inline: 1rem; }
.stage--duo .phone { width: min(52%, 250px); }
.stage--duo .phone:first-child { rotate: -4deg; margin-top: 1rem; }
.stage--duo .phone + .phone { margin: 3.25rem 0 0 -12%; z-index: 1; }
.feature-media figcaption { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.feature-copy p { margin: 0 0 1rem; }
.feature-copy p:last-child { margin-bottom: 0; }

/* Außerdem */
.extras { padding-top: 2.5rem; }
.extras h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 0 0 1rem; }
.extras ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.extras li { border-top: 1px solid var(--line); padding: .95rem 0 1.1rem; color: var(--muted); }
.extras strong { display: block; color: var(--text); }

/* Datenschutz */
.ink {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(200, 16, 46, .5), transparent 62%),
    var(--ink);
  color: var(--ink-text);
}
.ink .kicker { color: var(--ink-accent); }
.ink a { color: var(--ink-accent); font-weight: 600; }
.ink .display { max-width: 18ch; }
.ink-list {
  list-style: none; margin: 2.5rem 0 2rem; padding: 0;
  display: grid; gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.ink-list li { border-top: 2px solid rgba(255, 255, 255, .2); padding-top: 1.1rem; color: var(--ink-muted); }
.ink-list strong { display: block; color: var(--ink-text); font-size: 1.15rem; margin-bottom: .35rem; }

/* Voraussetzungen */
.needs-list {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; gap: 2rem;
}
.needs-list li { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; align-items: start; align-content: start; }
.needs-icon {
  grid-row: span 2;
  width: 3.25rem; height: 3.25rem;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--accent-soft); color: var(--accent);
}
.needs-icon svg { width: 1.6rem; height: 1.6rem; }
.needs-list h3 { font-size: 1.15rem; line-height: 1.3; margin: .1rem 0 .35rem; }
.needs-list p { margin: 0; color: var(--muted); }
/* Hinweis unter den Voraussetzungen: helle Karte statt Fläche, sonst wie .note (site.css) */
.needs-note {
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.disclaimer { margin: 0; color: var(--muted); font-size: .92rem; }

/* Fragen */
.ask { padding-top: 1rem; }
.ask-inner {
  display: grid; gap: 1rem 3rem;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--brand-1), var(--brand-2)) 1;
  padding-top: 3rem;
}
.ask-title { font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem); margin: 0; }
.ask-lead { font-size: 1.15rem; margin: 0 0 1rem; }
.mail {
  display: inline-block;
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 1rem + 1.6vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.ask p.muted { color: var(--muted); margin: 0; }

@media (min-width: 40rem) {
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .how-steps li:not(:last-child)::after {
    content: ""; position: absolute; top: calc(1.55rem - 1px); left: 10.3rem; right: -1rem;
    height: 2px; background: linear-gradient(90deg, var(--line), transparent);
  }
  .needs-list { grid-template-columns: repeat(3, 1fr); }
  .needs-list li { grid-template-columns: 1fr; }
  .needs-icon { grid-row: auto; margin-bottom: .9rem; }
}

@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; padding-top: 2rem; }
  .hero-copy { padding-bottom: 4.5rem; }
  .hero-band::before {
    background: radial-gradient(45% 75% at 80% 55%, rgba(255, 59, 48, .8), transparent 70%);
  }
  .hero-visual { --phone: clamp(220px, 21vw, 275px); margin-bottom: -7rem; padding-top: 1.5rem; }
  .hero-icon { width: 84px; height: 84px; }
  .how { padding-top: calc(7rem + 4.5rem); }
  .how-stick .dv-stick { width: 9rem; }
  .how-steps li:not(:last-child)::after { left: 11.8rem; }
  .feature { grid-template-columns: 1fr 1fr; gap: 4.5rem; padding: 4rem 0; }
  .feature--flip .feature-media { order: 2; }
  .stage { aspect-ratio: 1 / 1; }
  .stage--wide { aspect-ratio: 6 / 5; }
  .ask-inner { grid-template-columns: auto 1fr; align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual { animation: rise 1s var(--ease-out) both; }
  /* Punkte in „LED blinkt …“ blinken wie die LED (Muster aus devices.css) */
  .led-dot--slow { animation: dv-led-slow 1.5s linear infinite; }
  .led-dot--fast { animation: dv-led-fast .33s linear infinite; }
  .led-dot--typing { animation: dv-led-typing 3s linear infinite; }
  .status-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: #ffffff;
    animation: ping 2.6s var(--ease-out) 1s 3 both;
  }

  @supports (animation-timeline: view()) {
    .stage .phone {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}
@keyframes rise { from { transform: translateY(40px); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes lift { from { transform: translateY(3.5rem); } }

@media print {
  .hero-visual, .stage { display: none; }
  .ink { background: none; color: var(--text); }
}
